Skip to content

disable smart routing for all subcommands on cc and codex - #558

Merged
lilly-luo merged 6 commits into
mainfrom
lilly/simplify-tui-launch
Sep 11, 2026
Merged

disable smart routing for all subcommands on cc and codex#558
lilly-luo merged 6 commits into
mainfrom
lilly/simplify-tui-launch

Conversation

@lilly-luo

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

Copy link
Copy Markdown
Collaborator

only 2 cmds should invoke smart routing:

  • ug codex or ug claude which launches a tui that will smart route the first prompt
  • ug codex -- <prompt> or ug claude -- <prompt> which will launch a tui with prompt prepopulated and then smart route it.

no other subcommands should trigger smart routing, even if the environment variable is set. this came up because isaac codex app which automatically has enable_smart_routing_v2=1 set tried to invoke smart routing...

this was missed in #502 because i didn't explicitly test ug codex app which apparently functions diff from ug codex app-server

testing:

  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex -> invokes smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug claude -> invokes smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex -- 'hi' -> invokes smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug claude -- 'hi' -> invokes smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex app -> does NOT invoke smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex app-server -> does NOT invoke smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex update -> does NOT invoke smart routing
  • ENABLE_SMART_ROUTING_V2=1 uv run ug codex --model system.ai.glm-5-2 -> does NOT invoke smart routing

@lilly-luo lilly-luo changed the title Lilly/simplify tui launch don't invoke smart routing for ucode codex app even if the env var is set Sep 11, 2026
@lilly-luo lilly-luo changed the title don't invoke smart routing for ucode codex app even if the env var is set disable smart routing for all subcommands Sep 11, 2026
@lilly-luo lilly-luo changed the title disable smart routing for all subcommands disable smart routing for all subcommands on cc and codex Sep 11, 2026
@lilly-luo
lilly-luo enabled auto-merge (squash) September 11, 2026 19:52
@lilly-luo
lilly-luo merged commit 4350098 into main Sep 11, 2026
2 checks passed
@lilly-luo
lilly-luo deleted the lilly/simplify-tui-launch branch September 11, 2026 19:55
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