Repository navigation
fix: New Session adopts discovered models - #129307
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 25, 2026, 5:58 PM ET / 21:58 UTC. ClawSweeper reviewWhat this changesThis PR propagates dynamically discovered provider models from the prepared catalog through Gateway metadata and the Control UI so New Session can display them after explicit picker discovery. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep open. The branch remains a relevant candidate fix for the New Session discovery gap, but its new picker refresh can turn an already usable static catalog into “Models unavailable” when Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherPrepared model catalogs supply Gateway chat metadata and configured model listings. The Control UI keeps a shared metadata cache for each agent, which New Session uses to render its model picker. flowchart LR
A[Provider discovery] --> B[Prepared model catalog]
B --> C[Gateway metadata lifecycle]
B --> D[Configured model listing]
C --> E[Browser metadata cache]
D --> E
E --> F[New Session picker]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +43, Tests +246. Total +289 across 22 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the ready New Session metadata selectable when explicit discovery fails, add that regression coverage, then complete the direct Codex contract check before merging. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: start with ready chat metadata, open the picker, and make Is this the best way to solve the issue? No. The safest repair is to retain the ready metadata snapshot on discovery failure, matching the existing stale-metadata refresh contract rather than treating an optional discovery error as catalog loss. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e1e2818a6ab0. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
7e0eaa2 to
8add163
Compare
|
Maintainer follow-up: the PR now repairs both independent cache owners instead of stopping at the Gateway projection. The prepared-catalog producer publishes completed discovery with its exact paired auth generation; configured wildcard views consume that producer-owned provenance; and explicit Chat/New Session picker discovery refreshes the existing shared browser metadata store. Startup remains prepared-only, subordinate publication cannot pretend every agent owner is ready, stale auth fails closed, and the previous worker-owned auth coupling/manual full-catalog flag are gone. The first image shows the initial prepared-only Chat state. The second shows the same account-discovered model visibly available in New Session with its discovered 262k context window. The attached recording covers Chat discovery, updated reasoning controls, navigation into New Session, and the visible discovered model. These are real Chromium captures with a deterministic mocked Gateway. The originally failing Chromium assertion is now green, both relevant browser suites pass (5 scenarios), and the real non-minimal Gateway RPC/owner-boundary shard passes (7 files, 52 tests). Independent review of the complete rewritten branch reported no actionable findings. |
9f9098e to
5976a48
Compare
70de189 to
370a28e
Compare
370a28e to
9987b93
Compare
|
Merged via squash.
|
* oc-92a.8: converge dynamic chat metadata catalog * fix(gateway): converge discovered model catalogs across sessions Co-authored-by: Josh Lehman <[email protected]> * test(gateway): satisfy deferred helper lint * test(ui): bind model discovery proof to the active route * chore: keep release notes in pull request metadata * test(agents): preserve plugin metadata scope in model fixtures --------- Co-authored-by: Peter Steinberger <[email protected]>


Closes #124008
Related: #126013
Thanks @catsonkeyboard for the packaged-runtime report and @ekinnee for investigating the broader catalog convergence problem.
Root cause
Dynamic provider discovery completed in the prepared model-catalog owner, but the Gateway's cached chat-metadata projection and the browser's independent shared metadata cache both retained their original static snapshots. The original patch also conveyed full-catalog provenance through a manual boolean, imported authentication ownership from the catalog worker, and could misclassify a subordinate catalog publication as a top-level owner transition.
Architectural repair
models.list, revalidate the existing per-agent browser metadata owner so Chat and New Session converge without copying rows, adding protocol fields, or introducing a parallel store.The latest ClawSweeper wildcard finding is fixed at the canonical full-catalog provenance boundary and covered with real configured wildcard/auth facts. The old manual discovery flag and worker-owned auth coupling were removed.
Proof
codex-rs/app-server/src/request_processors/catalog_processor.rs:242,codex-rs/app-server/src/models.rs:34,codex-rs/core/src/thread_manager.rs:782, andcodex-rs/app-server-protocol/src/protocol/v2/model.rs:89.The browser proof uses a real Chromium browser with a mocked Gateway. A combined providers-on, non-minimal real Gateway/browser attempt was also tried twice, including an isolated single-provider bundled root, but Gateway startup exceeded this repository's 120-second test budget before browser navigation (146 seconds/2.44 GiB and 126 seconds/2.49 GiB). That attempt is not represented as live-provider proof.