Skip to content

Skip test prompts during autoconfiguration for all harnesses - #566

Merged
lilly-luo merged 2 commits into
mainfrom
lilly/skip-autoconfigure-validation
Sep 11, 2026
Merged

Skip test prompts during autoconfiguration for all harnesses#566
lilly-luo merged 2 commits into
mainfrom
lilly/skip-autoconfigure-validation

Conversation

@lilly-luo

@lilly-luo lilly-luo commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Launching a harness that is not yet configured currently sends a separate "say hi in 5 words or less" validation prompt before starting the requested session. If that subprocess exceeds 60 seconds, launch fails and the newly written config is reverted.

Skip the test prompt during launch-triggered autoconfiguration for all six harnesses (Claude, Codex, Gemini, OpenCode, Copilot, and Pi). Setup still writes the configuration and performs its existing auth, gateway, and model checks before launching the actual session. Explicit ug configure continues to validate unless --skip-validate is passed.

Validation:

  • Regression tests cover every harness with no saved workspace and with a workspace missing the harness, and preserve explicit configure's validation/skip behavior.
  • env -u ENABLE_SMART_ROUTING_V2 UV_CACHE_DIR=/tmp/ucode-uv-cache uv run --no-sync pytest tests/test_cli.py -q
  • UV_CACHE_DIR=/tmp/ucode-uv-cache uv run --no-sync ruff check .

Used the existing environment because dependency syncing could not reach the package index. The inherited smart-routing flag was unset for tests.

before:
Screenshot 2026-09-11 at 11 18 13 AM

Screenshot 2026-09-11 at 11 21 25 AM

after:
Screenshot 2026-09-11 at 11 19 47 AM

codex also skips validation w/ this change but it's really fast so i can't grab a screenshot

@lilly-luo
lilly-luo enabled auto-merge (squash) September 11, 2026 16:59
@lilly-luo
lilly-luo merged commit b3f6eb4 into main Sep 11, 2026
2 checks passed
@lilly-luo
lilly-luo deleted the lilly/skip-autoconfigure-validation branch September 11, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants