Repository navigation
fix(chat): model picker spins on every message - #164963
Conversation
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8a6158f8-fea3-4b57-9ee4-9e1c136b8ef1
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 11:36 AM ET / 15:36 UTC (Revision 4). ClawSweeper reviewWhat this changesThe Control UI keeps the model name and chevron steady during message submission, removes unused starting-status copy, and updates documentation and regression expectations. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. Inspected visual proof supports the focused change, and this re-review found no actionable correctness or security defects. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI model picker combines saved model choices, cached catalog data, and Gateway run observations to display the current model. Its presentation feeds the chat composer without owning provider routing or model authorization. flowchart LR
A[Saved model choice] --> D[Model controls]
B[Cached model catalog] --> D
C[Gateway run observations] --> D
D --> E[Model name and chevron]
B --> F[Catalog loading feedback]
G[Message submission] --> H[Send and Stop feedback]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +3, Docs +1. Total -4 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep run progress on the Send/Stop control and reserve model-picker loading feedback for catalog availability, while retaining observed fallback labels. Do we have a high-confidence way to reproduce the issue? Yes, from source: sending with a known model and no current-run model observation activates the starting spinner on current main. This review did not execute that path. Is this the best way to solve the issue? Yes. Removing the presentation flag is a narrow repair that preserves catalog-loading feedback, model-selection guards, and fallback observation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9da00b0b92ea. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Preserve main’s consolidated coverage and keep the quiet model-picker regression. Production behavior is unchanged. Co-authored-by: vyctorbrzezowski <[email protected]>
Preserve mounted-pane and reentrant fallback coverage while expecting the new non-busy model picker before run observation. Co-authored-by: vyctorbrzezowski <[email protected]>
|
Merged via squash.
|
Follow the documented behavior from #164963: sending and awaiting model observation keep the selected model visible without a busy indicator. Preserve the selected-model, fallback, recovery and catalog assertions. CI 37214788298 reproduced the obsolete expectations at both viewports. Blacksmith Testbox staged checks pass; independent review through P2 is clean.
…4984) * perf(gateway): share update status preparation across reconnects Prepare the restart-notification snapshot once per update lifecycle and publish later outcomes through its existing producers and run watcher. Retain fresh report reads and bounded observation of detached updater notifications that arrive after terminal history. Remove the redundant approval replay expiry sweep; the replay owner keeps expiry publication and per-client authority checks. Release-note context: Faster Control UI update-status checks after reconnect, with current update outcomes preserved. Linux quiet requests averaged 5.76 ms before and 2.60 ms after; strict 5 ms p99 remains unmet. Proof: Blacksmith Testbox changed-file gate, 313 focused update tests, 55 replay tests on both revisions, and Linux dist Gateway reconnect rig. * test(gateway): await schema watcher readiness in publication fixture Observe the initial running-run event before advancing the fixture clock. Keep unrelated notification transport from reopening the database or using a real worker clock during held-connection schema publication assertions. Reproduces the CI schema-version failure on Node 24.19 before the fix. Preserves the grace-period, rescheduling, and cancellation assertions. * test(ui): align model picker E2E with quiet send state Follow the documented behavior from #164963: sending and awaiting model observation keep the selected model visible without a busy indicator. Preserve the selected-model, fallback, recovery and catalog assertions. CI 37214788298 reproduced the obsolete expectations at both viewports. Blacksmith Testbox staged checks pass; independent review through P2 is clean.
* fix(chat): model picker spins on every message Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8a6158f8-fea3-4b57-9ee4-9e1c136b8ef1 * test(chat): keep pending model observation quiet Preserve mounted-pane and reentrant fallback coverage while expecting the new non-busy model picker before run observation. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]>
…nclaw#164984) * perf(gateway): share update status preparation across reconnects Prepare the restart-notification snapshot once per update lifecycle and publish later outcomes through its existing producers and run watcher. Retain fresh report reads and bounded observation of detached updater notifications that arrive after terminal history. Remove the redundant approval replay expiry sweep; the replay owner keeps expiry publication and per-client authority checks. Release-note context: Faster Control UI update-status checks after reconnect, with current update outcomes preserved. Linux quiet requests averaged 5.76 ms before and 2.60 ms after; strict 5 ms p99 remains unmet. Proof: Blacksmith Testbox changed-file gate, 313 focused update tests, 55 replay tests on both revisions, and Linux dist Gateway reconnect rig. * test(gateway): await schema watcher readiness in publication fixture Observe the initial running-run event before advancing the fixture clock. Keep unrelated notification transport from reopening the database or using a real worker clock during held-connection schema publication assertions. Reproduces the CI schema-version failure on Node 24.19 before the fix. Preserves the grace-period, rescheduling, and cancellation assertions. * test(ui): align model picker E2E with quiet send state Follow the documented behavior from openclaw#164963: sending and awaiting model observation keep the selected model visible without a busy indicator. Preserve the selected-model, fallback, recovery and catalog assertions. CI 37214788298 reproduced the obsolete expectations at both viewports. Blacksmith Testbox staged checks pass; independent review through P2 is clean.
What Problem This Solves
Fixes the model picker showing a loading spinner on every message even though its model catalog is already loaded.
User Impact
The selected model name and chevron stay steady while a message is sent. Actual catalog loading/refresh feedback and observed fallback-model updates remain intact. The separate Send/Stop button is unchanged.
Why This Change Was Made
The spinner was driven by waiting for the new run's model identity, not by fetching model choices. Remove that presentation flag and its unused copy without changing send, model-selection, cache, or Gateway behavior. Unknown and locked model states keep their existing labels and guards.
Evidence
aria-busyexpectations in mounted session-event coverage. Both reproduced locally and were updated without removing the event/fallback assertions. Final local verification: 196 tests passed across four files in 6.38 s. No additional production changes.7ebc2309683c6a7088a88a748d4dec097a20a361; native landing verified the required CI gate and completed ClawSweeper review before merge.Only the model-picker spinner changes; the separate send-button spinner is intentionally unchanged.
Fixtures use GPT-5.5 and a dark 1440×1000 viewport; no live provider traffic or production-latency claim.
Worked on by
Work sessions
View the OpenClaw team session