Repository navigation
fix: keep dictation settings from changing the chat model - #186290
Conversation
Open the existing Talk settings from the composer's Dictation Configure control. The general model setup flow could activate a discovered local model as the agent's chat default during a dictation-only settings task. Cover the dictation, Talk, and explicit model setup destinations together. Reported by @tre1d in #185817.
|
🦞👀 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 SummaryThis 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. |
|
Codex review: needs maintainer review before merge. What this changesDictation Configure opens existing Talk settings instead of chat-model setup. Example: Configure unavailable dictation while the agent uses ollama/qwen3:8b.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a verified routing defect still present on main, with no actionable introduced bugs found. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI composer supplies microphone-menu callbacks to application navigation, which opens either voice settings or explicit chat-model setup. flowchart LR
A[Microphone menu] --> B[Chat pane callbacks]
B --> C[Application router]
C --> D[Talk settings]
E[Chat model controls] --> C
C --> F[Model setup]
Technical reviewBest possible solution: Use the existing Talk settings owner for dictation configuration while retaining explicit chat-model setup. Do we have a high-confidence way to reproduce the issue? Current-main source confirms the incorrect destination, and the supplied isolated Gateway reproduction demonstrates model activation from that path; this read-only review ran no target code. Is this the best way to solve the issue? The one-line routing correction is the smallest complete fix for the dictation entry-point defect and preserves existing settings and activation owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7d56f22a6027. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests -3, Docs +2. Total -1 across 6 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 (1 earlier review cycle)
Reviewed October 27, 2026, 8:18 PM ET / October 28, 2026, 00:18 UTC (Revision 2). |
…files The viewer/link color case added in #185821 asserts that a programmatically focused GitHub chip matches :focus-visible. Chromium only applies that to script focus after keyboard input, and parallel browser files share one page, so a neighbor's click flips the heuristic and the light/dark cases fail in CI shards (seen on PR #186290, checks-ui 1/3) while passing alone. Press Tab once before the synchronous contrast loop, matching the sibling focus-visible tests. Local proof: chat+components chromium browser run failed both cases before; 0/5 failures after; file alone 8/8.
#186028 renders a completion toast's action as an <a href> when it carries actionHref (so middle-click and Cmd-click open a new tab). The background new-session e2e still clicked a button named "Open", so desktop and mobile "starts a draft in the background" timed out after 30 s in checks-ui-e2e (seen on PR #186290). Click the "Open session" link instead; the test still proves a plain click opens the session in the current tab. Proof: ui/src/e2e/new-session-page.transition.e2e.test.ts 8/8 (44 s) with a fresh bundled build; only the background-session notice sets actionHref.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Follow the Talk settings destination introduced by #186290. Preserve the browser microphone capability-gating flow while asserting its current user-visible route.
…files The viewer/link color case added in openclaw#185821 asserts that a programmatically focused GitHub chip matches :focus-visible. Chromium only applies that to script focus after keyboard input, and parallel browser files share one page, so a neighbor's click flips the heuristic and the light/dark cases fail in CI shards (seen on PR openclaw#186290, checks-ui 1/3) while passing alone. Press Tab once before the synchronous contrast loop, matching the sibling focus-visible tests. Local proof: chat+components chromium browser run failed both cases before; 0/5 failures after; file alone 8/8.
openclaw#186028 renders a completion toast's action as an <a href> when it carries actionHref (so middle-click and Cmd-click open a new tab). The background new-session e2e still clicked a button named "Open", so desktop and mobile "starts a draft in the background" timed out after 30 s in checks-ui-e2e (seen on PR openclaw#186290). Click the "Open session" link instead; the test still proves a plain click opens the session in the current tab. Proof: ui/src/e2e/new-session-page.transition.e2e.test.ts 8/8 (44 s) with a fresh bundled build; only the background-session notice sets actionHref.
…86290) * fix: keep dictation settings out of chat model setup Open the existing Talk settings from the composer's Dictation Configure control. The general model setup flow could activate a discovered local model as the agent's chat default during a dictation-only settings task. Cover the dictation, Talk, and explicit model setup destinations together. Reported by @tre1d in openclaw#185817. * test: reuse shared chat composer fixtures
Follow the Talk settings destination introduced by openclaw#186290. Preserve the browser microphone capability-gating flow while asserting its current user-visible route.
Related: #185817. Thanks @tre1d for the report and clarification.
What Problem This Solves
When dictation is unavailable, its Configure action opens general model setup. Continuing with a discovered local model can replace the agent's default chat model during a dictation settings task.
User Impact
Dictation Configure now opens the existing Talk settings page without entering chat-model activation. Explicit model setup remains available from the chat model controls.
Why This Change Was Made
The composer wired the dictation action to
model-setup. Route it to the existing voice settings owner (talk), with a regression covering dictation, Talk, and explicit model setup destinations. No new config or activation/rollback behavior is introduced. The existing Talk page remains the voice settings home; this change does not add a dedicated transcription setup wizard.Evidence
Base
d45ff6de6c48, isolated macOS Gateway + real Control UI: Dictation → Configure → Models → On this Gateway → use the discovered LM Studio fixture changedagents.entries.main.model.primaryfromollama/qwen3:8btolmstudio/dictation-fixture-chat. The captured RPC wasopenclaw.setup.activate.startwithkind: provider-auto:lmstudioand no dictation scope. Wizard completed; browser flow took 23.447 s.Real local-model control:
pnpm openclaw --profile dictation-setup agent --agent main --message 'Reply with the single word OK. Do not use tools.' --thinking off --jsonreturnedOKthrough the Gateway onollama/qwen3:8b(11.553 s model run).Regression failed on the base at the dictation destination and passes with the fix. Focused pane + microphone suites: 16 tests passed; new regression 97 ms, total wrapper wall time 82.46 s including cold transforms. The three fixture-consolidation suites also passed (42 tests, 78.57 s wrapper). UI typecheck passed (8.60 s); scoped formatting passed.
Head on the rebuilt isolated Gateway: Dictation Configure opened
/settings/talkin 5.809 s, emitted zero setup RPCs, and preserved both global and main-agent primaries atollama/qwen3:8b. A real Qwen control turn again returnedOK(10.123 s model run; 25.42 s CLI wall time).Full production build passed (24m50s); affected lint and UI typecheck passed; formatting, line-cap, max-lines, assertion-safety, timeout-race, mock-exports, config docs, plugin inventory and database ratchets passed. Test-lines passed with a net reduction of 3 lines. Independent Codex review: no accepted/actionable findings through P2.
Before: dictation Configure entered general provider/model setup.
After: dictation Configure opens Talk settings.
Real LM Studio and the reported Windows activation hang remain unverified. The setup reproduction uses a deterministic local LM Studio-protocol server (native model inventory + streamed chat completions); the local-model control uses real Ollama. Current activation verifies before persistence and waits for the applied receipt, so this PR makes no claim to fix that separate hang.
Production: +1/-1 lines (net zero). Tests: +27/-30 (net -3), including reuse of the existing composer-control fixture without changing assertions. Docs: +2/-0.