Skip to content

Persist per-agent model locations - #673

Open
andy-xu-db wants to merge 6 commits into
mainfrom
codex/persist-model-location
Open

andy-xu-db wants to merge 6 commits into
mainfrom
codex/persist-model-location

Conversation

@andy-xu-db

@andy-xu-db andy-xu-db commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

🥞 Stacked PR

Use this link to review incremental changes.


Summary

  • Persist ug configure --model-location <catalog>.<schema> independently for Claude Code and Codex and reuse saved locations on bare launches.
  • Keep explicit provider/location choices launch-only and give them precedence over saved choices without mutating durable state.
  • Enable Claude's pre-existing native gateway discovery only for an effective explicit/saved location, restore the caller environment afterward, and enforce the existing Claude minimum version before configuration or launch.
  • Validate managed source policy before writes or workspace switches and isolate each managed agent overlay during multi-agent configuration.

Scope boundary

Verification

  • Head: a0c7ed9adafca746774755266ddea29c5fb964ea.
  • tests/test_cli.py at this boundary: 419 passed.
  • Location-stack top: 2,540 passed and 42 skipped locally, excluding the native-binary capture test whose two environment-dependent failures reproduce on main.
  • Ruff, formatting, and git diff --check passed.

@andy-xu-db
andy-xu-db changed the base branch from main to codex/model-discovery-policy September 16, 2026 07:21
@andy-xu-db
andy-xu-db force-pushed the codex/model-discovery-policy branch from 798ae8c to 6daa765 Compare September 16, 2026 18:32
@andy-xu-db
andy-xu-db force-pushed the codex/persist-model-location branch from a947678 to 42495b9 Compare September 16, 2026 18:32
@andy-xu-db
andy-xu-db force-pushed the codex/model-discovery-policy branch from 6daa765 to b138b4e Compare September 16, 2026 20:30
@andy-xu-db
andy-xu-db force-pushed the codex/persist-model-location branch from 42495b9 to f8bad0f Compare September 16, 2026 20:30
@andy-xu-db
andy-xu-db changed the base branch from codex/model-discovery-policy to andy-xu-db/stack/codex/codex-scoped-model-discovery September 16, 2026 20:31
@andy-xu-db
andy-xu-db force-pushed the codex/persist-model-location branch from f8bad0f to e4271bc Compare September 16, 2026 20:44
@andy-xu-db
andy-xu-db force-pushed the andy-xu-db/stack/codex/codex-scoped-model-discovery branch from ffa3e3e to 019a443 Compare September 16, 2026 22:27
@andy-xu-db
andy-xu-db force-pushed the codex/persist-model-location branch from e4271bc to a0c7ed9 Compare September 16, 2026 22:28
@andy-xu-db
andy-xu-db changed the base branch from andy-xu-db/stack/codex/codex-scoped-model-discovery to main September 16, 2026 22:28
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.

1 participant