Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18e815241e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@clawsweeper re-review Please review the current head |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 73dde58e33
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. What this changesThis PR hides unsupported Daybreak controls and reconciles stale Access choices during model switches and before sending. Example: A chat with daybreak_blue switches to openai/sample-standard.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a remaining current-main bug; no actionable code or security findings were found, and exact-head CI is still running. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI combines model/runtime capabilities with saved chat or draft preferences, then sends setting changes through the existing Gateway session writer before dispatching a turn. flowchart LR
Catalog[Model and runtime catalog] --> Resolver[Shared Daybreak resolver]
Saved[Saved chat or draft choice] --> Resolver
Resolver --> Controls[Chat and New Session controls]
Controls --> Writer[Gateway session writer]
Send[Composer send] --> Writer
Writer --> Provider[Provider request]
Technical reviewBest possible solution: Retain the shared capability resolver and existing session writer, preserving unknown-discovery intent while repairing confirmed stale choices. Do we have a high-confidence way to reproduce the issue? Current-main source retains visibility for a saved Daybreak selection without support, and the supplied before screenshot shows that exact Standard-only case; no target code was executed during this review. Is this the best way to solve the issue? The patch uses the existing resolver and writer, removes duplicate visibility decisions, and handles chat, draft, switch, and send boundaries without adding state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58e073457b98. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +41, Tests +108, Docs +3. Total +152 across 14 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 24, 2026, 6:44 AM ET / 11:44 UTC (Revision 4). |
|
Reviewed all four items from the prior review against current head
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Head @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Gate the shared chat and new-session control on advertised Daybreak programs. Remap or clear a saved program in the same model patch and clear an existing stale program before the next Control UI turn.
Only reconcile a saved choice before sending when the current catalog confirms its supported programs. Remap stale choices when needed and cover both paths in the bundled Control UI.
Keep the requested access program while the draft target is unchanged and its discovery is pending or unavailable. Filter only when advertised programs confirm the old choice is incompatible.
Keep an existing Blue selection during missing discovery, then send a turn through the built Control UI after discovery confirms lack of support. Verify the saved override is cleared and the loopback provider receives Standard.
cbe1baa to
0f2b708
Compare
|
Rebased @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
|
The pinned rebased head The earlier provider setup timeout passed on the rebased head in 88.6 seconds. The prior mobile WebKit history failure also cleared after #204600, which closed #204562. The exact 390 px case passed in the Linux WebKit shard, and all three real-Gateway Daybreak cases passed. CI completed on attempt 1. Earlier provider failure · Earlier scheduled-main WebKit failure · Passing WebKit shard · Passing Daybreak shard |
* fix(ui): show Daybreak only for supported chat models Gate the shared chat and new-session control on advertised Daybreak programs. Remap or clear a saved program in the same model patch and clear an existing stale program before the next Control UI turn. * fix(ui): preserve Daybreak choices during discovery gaps Only reconcile a saved choice before sending when the current catalog confirms its supported programs. Remap stale choices when needed and cover both paths in the bundled Control UI. * fix(ui): preserve draft Daybreak choices during discovery Keep the requested access program while the draft target is unchanged and its discovery is pending or unavailable. Filter only when advertised programs confirm the old choice is incompatible. * test(ui): prove stale Daybreak repair through the Gateway Keep an existing Blue selection during missing discovery, then send a turn through the built Control UI after discovery confirms lack of support. Verify the saved override is cleared and the loopback provider receives Standard. * test(ui): expect Daybreak only with advertised support
…l UI (#204325) * fix(agents): default Access to a model's only advertised program Cyber models advertise only Daybreak Red and reject Standard, but the runtime default fell back to Standard whenever no accessPrograms.cyber was configured, so unconfigured cyber-model turns outside the Control UI failed with invalid_access_program. The default now follows the selected account's advertised programs from the prepared model catalog for both the catalog projection and the physical request. * test(agents): satisfy test typecheck for Access default contracts * test(agents): give the overflow-compaction runtime fixture its isCurrent contract * fix(agents): read advertised Access programs only on routes that send one Dispatch now skips the prepared-catalog account read for providers and routes that never send an Access program, so non-OpenAI turns do no extra account-catalog work. The default resolver and dispatch share one route predicate. (cherry picked from commit 862c71e) Release adaptation: Keep stable's Daybreak toggle and separate Access selector wording; document the advertised single-program default and stale-choice error without importing the UI behavior from #204302. Include eccac8a (#204461), which keeps the attempt lookup private and tests the dispatch wrapper. Role, current-account, and entitlement checks are unchanged. Later same-file changes not needed: a1ba2bc (#204545) is newer Control UI behavior; d2699a8 (#204847) adds separate participation limits; f00839d adds MCP requester propagation; 26f82df (#205687) adds streaming preflight progress; 41dc731 (#195479) retains transcript targets across catalog reloads; 4ff18a0 changes project-move prompt inputs. None is a dependency of the Access default. Co-authored-by: RomneyDa <[email protected]>
* fix(ui): show Daybreak only for supported chat models Gate the shared chat and new-session control on advertised Daybreak programs. Remap or clear a saved program in the same model patch and clear an existing stale program before the next Control UI turn. * fix(ui): preserve Daybreak choices during discovery gaps Only reconcile a saved choice before sending when the current catalog confirms its supported programs. Remap stale choices when needed and cover both paths in the bundled Control UI. * fix(ui): preserve draft Daybreak choices during discovery Keep the requested access program while the draft target is unchanged and its discovery is pending or unavailable. Filter only when advertised programs confirm the old choice is incompatible. * test(ui): prove stale Daybreak repair through the Gateway Keep an existing Blue selection during missing discovery, then send a turn through the built Control UI after discovery confirms lack of support. Verify the saved override is cleared and the loopback provider receives Standard. * test(ui): expect Daybreak only with advertised support (cherry picked from commit a1ba2bc) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
A chat that saved Daybreak could keep showing a toggle after moving to a model that offers only Standard access. The model switch left the stale choice saved, so the next turn could fail before reaching the provider.
User Impact
Chat and New Session show Daybreak only for models and runtimes that advertise it. Switching models clears an inapplicable Daybreak choice with the model update, or carries it to a program the destination advertises. Before sending, the browser repairs a saved choice when the current model's advertised program list confirms it is stale. On an unchanged model, saved chat and draft choices survive missing discovery data. An intentional switch carries Daybreak only to a destination that advertises it.
Why This Change Was Made
The shared model-control projection uses the advertised programs for visibility. The existing session settings writer handles the atomic switch and the pre-send repair. Provider entitlement checks continue to enforce explicit program requests.
Evidence
On main, the mocked-Gateway browser regression finds a Daybreak row for a stale Blue session on a Standard-only model and sees a model patch without the clear. Both pass on the fix. The browser verifies the exact patch, then sends a turn and receives the synthetic assistant reply. The 12 bundled Chromium cases cover Sol, required Red, the New Session picker, missing discovery data, and stale Blue remapped to required Red before sending. Both added send cases failed on the first PR head and passed with the repair. CI on the second head found that the draft also dropped a saved choice before discovery was ready. The draft repair makes the existing create-parameters test and the new catalog regression pass. Focused unit and Chromium effort-picker suites pass.
The screenshots compare the bundled Control UI with the same synthetic session and Standard-only model on both revisions.
The built Control UI and an isolated Gateway with a synthetic provider also load a saved Blue choice after a browser reload, preserve it when discovery is missing, and hide Daybreak when discovery confirms no support. Sending through the composer then clears the stored override and the provider receives Standard. The Gateway session writer suite passed 20 cases, including the existing nullable Access patch contract. Codex autoreview of the final staged diff found no actionable issues through P3.
CI also exposed a picker test that expected a toggle on the Codex runtime and after catalog retirement. The corrected test asserts that both rows are absent and still exercises native activation and disabled callbacks on an advertised Blue model. All 21 picker unit cases, nine Chromium effort-picker cases, ten selected bundled Chromium Daybreak cases, and
pnpm check:changedpassed. The previous Linux CI run also timed out after a mobile RTL sidebar backdrop click. All 20 cases in that WebKit file passed on macOS. Prior CI jobClean comparison
Annotated comparison