Skip to content

fix: keep dictation settings from changing the chat model - #186290

Merged
steipete merged 3 commits into
mainfrom
fix/dictation-setup
Oct 28, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/dictation-setup

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 changed agents.entries.main.model.primary from ollama/qwen3:8b to lmstudio/dictation-fixture-chat. The captured RPC was openclaw.setup.activate.start with kind: provider-auto:lmstudio and 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 --json returned OK through the Gateway on ollama/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/talk in 5.809 s, emitted zero setup RPCs, and preserved both global and main-agent primaries at ollama/qwen3:8b. A real Qwen control turn again returned OK (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.

Before: general provider setup

After: dictation Configure opens Talk settings.

After: 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@steipete
steipete marked this pull request as ready for review October 27, 2026 20:37
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T23:15:12.162328Z 2f4c65f 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.

@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. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Dictation Configure opens existing Talk settings instead of chat-model setup.

Example: Configure unavailable dictation while the agent uses ollama/qwen3:8b.

  • Before: Configure enters model setup, where selecting the discovered LM Studio model can replace the agent's chat default.
  • After: Configure opens /settings/talk and preserves ollama/qwen3:8b.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The scoped patch and shipped-entry-point proof are strong; the overall tier reflects partial coverage of the broader linked issue, without requiring this PR to absorb its separate setup hang.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show general provider setup becoming Talk settings; the supplied rebuilt isolated Gateway replay records /settings/talk, zero setup RPCs, preserved ollama/qwen3:8b primaries, and a successful real-model control turn.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Configuring unavailable dictation can enter general model activation and unexpectedly replace the agent's chat model.
Reason: The maintainer-authored direction repairs a concrete reported defect using an existing settings owner; the PR correctly uses Related because the linked report also contains an unresolved activation hang.

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
Reviewed head: 2f4c65f50c1d817eb3bdc1204eae67435817dbbb

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Composer voice-settings navigation changes intended behavior with a stated reason (18beca5: The merged composer work included microphone availability and configuration actions; its recorded purpose does not establish a contract requiring dictation configuration to activate a chat model.)
  • Existing composer-control test fixtures keeps the original intent (0272aba: Prior test consolidation retained distinct lifecycle and permission contracts; this PR reuses the existing fixture without weakening those assertions.)
  • Configured speech documentation keeps the original intent (c4649b0: Configured dictation reuses Gateway transcription and speech owners while chat uses the selected agent model; documenting the separate settings destination preserves that separation.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c4649b0 adds docs/web/webchat.md:96 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c4649b0a64a6; files: docs/web/webchat.md)

PR surface

Source 0, Tests -3, Docs +2. Total -1 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 4 27 30 -3
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 30 31 -1

Review metrics

Metric Value Why it matters
Production versus test changes Production +1/-1; tests +27/-30 A single routing correction gains a focused regression while existing fixture reuse reduces test code.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: A reported voice-settings workflow can unintentionally replace the chat model used by unpinned sessions and background runs.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 (1 earlier review cycle)
  • reviewed 2026-10-27T20:55:21.679Z sha 90cae0e :: needs maintainer review before merge. :: none

Reviewed October 27, 2026, 8:18 PM ET / October 28, 2026, 00:18 UTC (Revision 2).

steipete added a commit that referenced this pull request Oct 27, 2026
…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.
steipete added a commit that referenced this pull request Oct 27, 2026
#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.
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 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. labels Oct 28, 2026
@steipete steipete self-assigned this Oct 28, 2026
@steipete
steipete merged commit 340b8a7 into main Oct 28, 2026
84 checks passed
@steipete
steipete deleted the fix/dictation-setup branch October 28, 2026 00:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 28, 2026
Follow the Talk settings destination introduced by #186290. Preserve the browser microphone capability-gating flow while asserting its current user-visible route.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
Follow the Talk settings destination introduced by openclaw#186290. Preserve the browser microphone capability-gating flow while asserting its current user-visible route.
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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. docs Improvements or additions to documentation P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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