Skip to content

fix(ui): show Daybreak only for supported chat models - #204545

Merged
steipete merged 5 commits into
mainfrom
steipete/perf-micro-daybreak-toggle-supported-models-only-20260919
Nov 24, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/perf-micro-daybreak-toggle-supported-models-only-20260919

Conversation

@steipete

@steipete steipete commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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:changed passed. 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 job

Clean comparison

Before After
The stale Daybreak toggle on Sample Standard Effort and speed on Sample Standard

Annotated comparison

Before After
The stale Daybreak row highlighted The effort and speed menu highlighted

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 24, 2026
@steipete
steipete marked this pull request as ready for review November 24, 2026 09:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T11:41:20.448777Z 0f2b708 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review the current head 73dde58e33dc. It includes the fix for the hosted Codex discovery finding. The pre-send reconciliation requires an advertised program list before updating a saved choice, and the bundled Control UI regression verifies that missing metadata preserves the choice.

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The unsupported Daybreak toggle remains visible and the saved Blue override survives.
  • After: The model update clears the override atomically and the menu shows only effort and speed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has no identified defect; visual evidence is directly inspectable, while persistence and send coverage relies on reported fixture runs and current-head CI remains pending.
Proof confidence 🦐 gold shrimp (3/6) The contributor proof gate does not apply to this maintainer-authored PR; inspected bundled-UI screenshots establish the visibility change, while send and reload behavior is supported by reported isolated-Gateway runs with synthetic provider I/O.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A chat can display Daybreak for an unsupported model and retain a stale choice that prevents its next turn.
Reason: The maintainer-authored change repairs a concrete failure across the existing controls and submission paths without adding a user setting.

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
Reviewed head: 0f2b70834efd8732b387542a3ca06ab8a13002e0

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Daybreak visibility and model-switch remapping changes intended behavior with a stated reason (5a4cb12: The model-following toggle replaced the Blue/Red chooser and remapped choices between supported models.)
  • Saved chat and draft preferences keeps the original intent (3e1eff7: Keep authenticated Access preferences independent of model-default policy and preserve them when discovery is unknown.)
  • Native toggle activation keeps the original intent (1f26ff4: Memoized checked and disabled values prevent unchanged streamed snapshots from undoing native activation.)
  • Send request ownership keeps the original intent (dedf85a: Separate request construction from acknowledgement, drain, and lifecycle owners.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1f26ff4 adds ui/src/pages/chat/components/chat-access-program-control.tsx:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1f26ff47c370; files: ui/src/pages/chat/components/chat-access-program-control.tsx)
  • Vyctor H. Brzezowski: Raw commit 3e1eff7 adds ui/src/pages/chat/components/chat-access-program-control.tsx:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e1eff7f703c; files: ui/src/pages/chat/components/chat-access-program-control.tsx)

PR surface

Source +41, Tests +108, Docs +3. Total +152 across 14 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 127 86 +41
Tests 6 150 42 +108
Docs 1 10 7 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 287 135 +152

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Label justifications:

  • P2: A focused Control UI repair prevents unsupported Access selections from leaving affected chats unable to send.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-24T09:52:47.432Z sha 73dde58 :: blocked before merge. :: [P2] Preserve explicit draft choices when discovery is unknown | [P2] Do not clear saved Daybreak choices on unknown model capabilities
  • reviewed 2026-11-24T10:08:36.168Z sha 30cf9de :: needs maintainer review before merge. :: none
  • reviewed 2026-11-24T10:26:47.675Z sha cbe1baa :: needs maintainer review before merge. :: none

Reviewed November 24, 2026, 6:44 AM ET / 11:44 UTC (Revision 4).

@steipete

Copy link
Copy Markdown
Contributor Author

Reviewed all four items from the prior review against current head 30cf9de41565.

  1. Draft submission with unknown discovery. The draft keeps its saved override while metadata is pending or unavailable, and when a ready catalog omits the program list. The existing create-parameters regression and a focused case for a ready catalog now pass. Draft fallback · Catalog decision · Draft regression
  2. Intentional model or runtime switch. I kept the requested same-patch clear on a different resolved target that advertises no Daybreak. An omitted list also occurs on destinations that never offer this program. Carrying the old override through that transition can leave the toggle hidden and the next turn rejected by the existing runtime entitlement check. The clear is scoped to the explicit target transition. An unchanged target preserves its saved choice while discovery is unknown. Switch and patch · Runtime check · Unchanged-target guard
  3. Existing stored values. The current field and nullable patch contract are used as shipped. All 20 Gateway writer cases passed, including seeding a stored Blue value and applying a nullable patch. The new built Control UI regression saves Blue on an isolated real Gateway, reloads and verifies the persisted row under unknown discovery and confirmed absence, then sends through the composer. It verifies the override clears and the synthetic provider receives Standard. Writer proof · Real Gateway browser proof
  4. Original discovery and preference intent. fix(ui): preserve Daybreak choices across chats #185039's authenticated draft preference survives a missing capability list for the same model. The docs now explain the scope of that preservation and the explicit switch operation. Documentation

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

Head cbe1baa4a847b updates the picker test to expect no Daybreak row on the Codex runtime or after catalog retirement. It still verifies native activation and the disabled callback for an advertised Blue model. Production code is unchanged from the last review with zero open items. Focused unit, Chromium browser, bundled mocked-Gateway, and changed-file checks passed. Test · Current CI

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 24, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Nov 24, 2026
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.
@steipete
steipete force-pushed the steipete/perf-micro-daybreak-toggle-supported-models-only-20260919 branch from cbe1baa to 0f2b708 Compare November 24, 2026 11:38
@steipete

Copy link
Copy Markdown
Contributor Author

Rebased 0f2b70834efd8732b387542a3ca06ab8a13002e0 onto the WebKit chat-history fix in #204600. All five PR patches matched in git range-diff. The local 390 px WebKit history case and the focused unit, bundled browser, and isolated Gateway Daybreak cases passed. Exact-head CI

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Nov 24, 2026
@steipete
steipete merged commit a1ba2bc into main Nov 24, 2026
89 of 92 checks passed
@steipete
steipete deleted the steipete/perf-micro-daybreak-toggle-supported-models-only-20260919 branch November 24, 2026 12:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

@steipete

Copy link
Copy Markdown
Contributor Author

The pinned rebased head 0f2b70834efd8732b387542a3ca06ab8a13002e0 landed through the native inherited-failure route. Its only failed test was the existing Model Providers rejected-key timing assertion introduced in #193507. The correct inline error rendered in 2,028 ms against 2,000 ms in CI and in 3,783 ms on the exact CI main parent 58e073457b98e2a9a13e3af8bcb0d243bd78175a. The spec stays on /settings/model-providers. Its fixture, browser entry points, credential writer, and probe owner are unchanged by this PR. Provider shard · Aggregate gate

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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
* 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
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
…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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant