Skip to content

fix(chat): model picker spins on every message - #164963

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/chat-spinner-regression-investigation
Oct 4, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/chat-spinner-regression-investigation

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Real Chromium Control UI with a mocked Gateway: before/after send, acknowledgment, model observation, and final response. The model catalog was requested once at startup and not requested again during the turn.
  • Two quiet-model regression cases failed against the original code. Original validation: 182 tests, 5.75 s. After main consolidated this test file and caused a conflict, the fix was adapted to the consolidated cases (without restoring removed duplicates): 179 tests passed, 14.55 s across the same three suites with one worker. Production code is unchanged by the conflict resolution. These are local wall times.
  • Broader UI CI exposed two stale aria-busy expectations 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.
  • Fresh independent AutoReview through P2 on the final seven-file delta: no accepted/actionable findings.
  • Formatting, UI i18n verification, and git diff whitespace checks pass.
  • Hosted CI run 37213197842 passed for final head 7ebc2309683c6a7088a88a748d4dec097a20a361; native landing verified the required CI gate and completed ClawSweeper review before merge.
  • Type-aware lint could not start because its declaration preparation rejects the borrowed dependency installation. Full build/typecheck and CI are not claimed by local proof; required checks remain enforced by the landing workflow.

Only the model-picker spinner changes; the separate send-button spinner is intentionally unchanged.

Before After
Before: model spinner during send After: stable model name and chevron during send

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

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8a6158f8-fea3-4b57-9ee4-9e1c136b8ef1
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 4, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 11:36 AM ET / 15:36 UTC (Revision 4).

ClawSweeper review

What this changes

The 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
Reviewed head: 7ebc2309683c6a7088a88a748d4dec097a20a361

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported presentation fix with directly relevant visual proof and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after captures directly show the production model picker replacing its send-time spinner with a stable chevron while Send remains busy. The captured mock-Gateway scenario exercises send and model observation; the later commits change only tests. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Chromium before/after captures directly show the production model picker replacing its send-time spinner with a stable chevron while Send remains busy. The captured mock-Gateway scenario exercises send and model observation; the later commits change only tests. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: Reviewed the merge-base-to-head delta. Production changes remove only the pending-run starting presentation; model-selection guards, catalog loading, and current-run model observation remain intact.
Still necessary on current main: Fetched main still computes modelStarting from an execution awaiting model identification and passes triggerStarting to the picker. Both changed production modules are identical between the pinned base and fetched main; the merged focus fix and UI cleanup did not solve this presentation problem.
Inspected before and after proof: Opened prepared proof-image-1.png and proof-image-2.png from the media manifest. Before shows a spinner beside the model name; after shows the chevron while the separate Send button remains busy. The captured PR body describes real Chromium running the production Control UI with a mocked Gateway through send, acknowledgment, model observation, and final response. This directly supports the visible presentation change, without claiming live-provider coverage.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source -8, Tests +3, Docs +1. Total -4 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 3 10 18 -8
Tests 3 80 77 +3
Docs 1 5 4 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 95 99 -4

Review metrics

None.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This corrects confusing loading feedback without changing message delivery, model routing, or stored settings.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected Chromium before/after captures directly show the production model picker replacing its send-time spinner with a stable chevron while Send remains busy. The captured mock-Gateway scenario exercises send and model observation; the later commits change only tests. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Chromium before/after captures directly show the production model picker replacing its send-time spinner with a stable chevron while Send remains busy. The captured mock-Gateway scenario exercises send and model observation; the later commits change only tests. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Chromium before/after captures directly show the production model picker replacing its send-time spinner with a stable chevron while Send remains busy. The captured mock-Gateway scenario exercises send and model observation; the later commits change only tests. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head delta. Production changes remove only the pending-run starting presentation; model-selection guards, catalog loading, and current-run model observation remain intact. (ui/src/pages/chat/components/chat-model-controls.ts:357, 7ebc2309683c)
  • Still necessary on current main: Fetched main still computes modelStarting from an execution awaiting model identification and passes triggerStarting to the picker. Both changed production modules are identical between the pinned base and fetched main; the merged focus fix and UI cleanup did not solve this presentation problem. (ui/src/pages/chat/components/chat-model-controls.ts:356, 9da00b0b92ea)
  • Inspected before and after proof: Opened prepared proof-image-1.png and proof-image-2.png from the media manifest. Before shows a spinner beside the model name; after shows the chevron while the separate Send button remains busy. The captured PR body describes real Chromium running the production Control UI with a mocked Gateway through send, acknowledgment, model observation, and final response. This directly supports the visible presentation change, without claiming live-provider coverage.
  • Re-review continuity: The previous completed review recorded no findings or rank-up moves. Since that reviewed head, the only change corrects the mounted event test's initial aria-busy expectation and asserts absence of the picker spinner; reentrant publication and fallback assertions remain. (ui/src/pages/chat/chat-pane-session-events.test.ts:532, 7ebc2309683c)
  • Retained loading and ownership coverage: The extended send-admission table covers a new message, previous-run observations, current execution, and unknown or locked models. Adjacent tests still distinguish known selections from genuinely loading catalogs. The pane test retains stale-event, other-session, replacement-run, and fallback checks. (ui/src/pages/chat/chat-view.test.ts:3869, 7ebc2309683c)
  • Feature-history routing: Available main history shows repeated model-control and chat refactors by Peter Steinberger, plus the merged picker-focus work. The latter commit records eleqtrizit as a co-author, consistent with the supplied related PR context; these are routing signals, not spinner-introduction attribution. (ui/src/pages/chat/components/chat-model-picker.ts, 9da00b0b92ea)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • eleqtrizit: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-04T15:02:48.302Z sha 57e3e55 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T15:13:44.234Z sha 57e3e55 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T15:26:52.456Z sha 2caf70e :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 4, 2026 15:09
Preserve main’s consolidated coverage and keep the quiet model-picker regression. Production behavior is unchanged.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 4, 2026 15:23
@roboclaw-bot
roboclaw-bot disabled auto-merge October 4, 2026 15:27
Preserve mounted-pane and reentrant fallback coverage while expecting the new non-busy model picker before run observation.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit fdba2ab into main Oct 4, 2026
87 of 88 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/chat-spinner-regression-investigation branch October 4, 2026 15:42
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 4, 2026
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.
steipete added a commit that referenced this pull request Oct 4, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…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.
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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