Skip to content

improve(ui): replace the chat settings popover with a composer view menu - #105904

Merged
steipete merged 1 commit into
mainfrom
claude/settings-screen-redesign-034dcc
Jul 13, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/settings-screen-redesign-034dcc

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The chat composer's gear popover had become a junk drawer: a Refresh action, a tri-state auto-scroll cycle button whose state was invisible, three display toggles, a "History" button that actually filtered cron sessions in the sidebar (and was wired to state nothing read — a dead control), a set-once send-shortcut preference, and a full voice/model/sensitivity/microphone block duplicating Settings → Talk. Most of it was misplaced, mislabeled (labels recycled from cron.form.thinking, agents.tabs.tools, cron.actions.history), or dead.

Why This Change Was Made

Controls should live next to what they control, and one-time preferences belong in Settings:

  • Composer View menu replaces the popover: a small eye-icon menu with three checkmark rows (Reasoning, Tool calls, Keep commentary) — the only genuinely chat-contextual toggles. Rows are disabled during onboarding, matching the old behavior.
  • Refresh removed. Chat is gateway-event-driven; the whole manual-refresh machinery (handleChatManualRefresh, generation/frame bookkeeping) is deleted.
  • Auto-scroll modes removed. "Near-bottom" (stick at bottom, release on scroll-up, jump-to-latest pill) is now the only behavior; the chatAutoScroll setting, its normalizer, and the mode branches in scroll.ts are gone.
  • Cron-session filter moved to the sidebar sessions sort/group menu as a working, persisted "Show cron sessions" checkbox (resolveSessionNavigation now takes showCron). The old popover toggle mutated sessionsHideCron, which no code consumed.
  • Send shortcut moved to Settings → Appearance in a new "Chat" block, alongside a Microphone input picker (the one client-side voice setting that persists, realtimeTalkInputDeviceId). Both are reachable via settings search.
  • Ephemeral voice overrides deleted. Voice/model/sensitivity are server talk config (talk.realtime.*, Settings → Talk); the in-memory per-tab overrides and the embedded talk-options renderer are removed. Talk sessions re-read persisted settings at start, so a microphone picked in Settings applies without a reload.

User Impact

  • The composer gains a compact View menu; the gear popover is gone.
  • Auto-scroll "always"/"off" modes disappear (default near-bottom behavior unchanged). The browser-local chatAutoScroll value is simply ignored — no migration needed for a client display pref.
  • Cron sessions can now actually be shown in the sidebar list (the previous toggle did nothing).
  • Send shortcut and microphone selection live in Settings → Appearance → Chat; voice/model/sensitivity are configured once in Settings → Talk instead of per-tab.

Net −1,310 lines.

Evidence

  • pnpm check:changed (lint + typecheck lanes) green on Blacksmith Testbox.
  • Unit/browser tests updated and run remotely: chat-controls, scroll, chat-state, chat-send, chat-view, settings.node, navigation (new cron-visibility test), chat-responsive.browser, config view.browser.
  • e2e specs updated for the new flows: view-menu toggle round-trip (chat-composer-redesign), send shortcut via Settings applying aria-keyshortcuts in chat (chat-flow), microphone picked in Settings driving deviceId: { exact: "usb" } at talk start and blocked-permission alert on the Settings page (browser-talk-start-stop).
  • Authenticated ui:i18n:sync run for the en.ts key changes (removed popover keys, added chat.view.*, sessionsView.showCronSessions, configView.chatPrefs.*).

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 13, 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: 1e192527d9

ℹ️ 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".

state.realtimeTalkInputDeviceId = inputDeviceId ?? "";
// Re-read persisted settings so a microphone picked on the Settings page
// applies to the next talk session without a reload.
const inputDeviceId = loadSettings().realtimeTalkInputDeviceId?.trim() || undefined;

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.

P2 Badge Preserve selected microphone when storage writes fail

When browser storage is blocked or localStorage.setItem throws, persistSettings intentionally catches the error and leaves the Settings page with only its in-memory selection; launching Talk now calls loadSettings() again here, so the selected microphone is lost and voice input falls back to the system default. This regresses the previous in-memory microphone fallback for blocked/private-storage contexts, where picking usb-mic should still apply within the current app session.

Useful? React with 👍 / 👎.

@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: 34d05f86af

ℹ️ 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".

@@ -238,7 +122,7 @@ export function attachChatRealtimeActions(state: ChatRealtimeState) {
state.requestUpdate();
},
},
launchOptions,
{},

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.

P2 Badge Preserve Talk launch overrides

When starting browser Talk after this change, the UI always constructs RealtimeTalkSession with an empty launch-options object, while RealtimeTalkSession still forwards any supplied model, voice, and vadThreshold to talk.client.create (see ui/src/pages/chat/realtime-talk.test.ts). In the existing composer settings flow users could pick a non-default realtime model/voice/sensitivity before launching; now those selections have no replacement UI path and the gateway receives only the session key, so users who need a specific voice/model/VAD for a session silently fall back to provider defaults unless they edit global config.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the claude/settings-screen-redesign-034dcc branch from 34d05f8 to e16b1b4 Compare July 13, 2026 03:30

@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

const chip = document.querySelector(".chat-settings-chip")?.getBoundingClientRect();

P2 Badge Update stale composer selector in e2e proof

When chat-composer-redesign.e2e.test.ts runs, this poll now looks for .chat-settings-chip, but this change removed that class and renders the View trigger as .chat-view-menu-trigger. The poll returns null until Playwright times out, so the updated composer e2e lane fails even though the View button was already found by role earlier in the test.

ℹ️ 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 commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 12, 2026, 11:40 PM ET / July 13, 2026, 03:40 UTC.

Summary
The PR replaces the chat settings popover with a composer View menu, moves persistent chat and microphone preferences into Settings, removes manual refresh and alternate auto-scroll modes, and adds a working sidebar cron-session visibility preference.

Reproducibility: not applicable. This PR proposes a deliberate Control UI redesign rather than fixing one reproducible current-main failure, although it also repairs a dead cron-session toggle.

Review metrics: 1 noteworthy metric.

  • User-choice surfaces: 4 removed. One persisted auto-scroll preference and three per-session Talk launch overrides disappear, making upgrade intent important before merge.

Stored data model
Persistent data-model change detected: persistent cache schema: ui/src/i18n/.i18n/ar.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/de.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/es.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/fa.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/fr.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/hi.tm.jsonl, and 13 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted browser evidence showing the composer View menu, Settings chat preferences, and microphone selection applied to an actual Talk start.
  • Resolve the dirty merge state and record explicit approval for removing the auto-scroll and per-session Talk choices.

Proof guidance:

  • [P1] Needs real behavior proof before merge: Only Testbox, unit, browser, and mocked E2E results are provided; add redacted screenshots, a recording, or live browser output, then update the PR body for automatic review or ask a maintainer for @clawsweeper re-review.

Mantis proof suggestion
A short web UI chat interaction would materially prove the new composer View menu and toggle behavior; microphone selection still needs separate browser diagnostics or recording evidence. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web ui chat proof: verify and capture the composer View menu toggling Reasoning, Tool calls, and Keep commentary with redacted evidence.

Risk before merge

  • [P1] Existing browser users lose the auto-scroll mode preference and per-session Talk model, voice, and sensitivity choices; upgrades silently adopt near-bottom scrolling and global Talk configuration.
  • [P1] The reported dirty merge state means current-main conflicts or behavioral interactions may alter the reviewed result.

Maintainer options:

  1. Approve the compatibility change after proof (recommended)
    Explicitly accept the removed preference surfaces, resolve the branch conflicts, and require redacted real-browser and upgrade evidence before merge.
  2. Restore removed preferences
    Preserve the existing auto-scroll and per-session Talk behavior while relocating the controls to a clearer supported surface.
  3. Pause or split the redesign
    Do not land the broad branch if maintainers do not want to own its compatibility change and UI churn together.

Next step before merge

  • [P1] A maintainer must decide the compatibility tradeoff, review a conflict-resolved head, and require real browser proof before this protected-label PR lands.

Maintainer decision needed

  • Question: Should Control UI intentionally remove alternate auto-scroll modes and per-session Talk model, voice, and sensitivity overrides in favor of one scrolling policy and global Talk settings?
  • Rationale: The patch changes established user behavior rather than only relocating controls, so implementation correctness cannot determine whether the compatibility tradeoff is desired.
  • Likely owner: steipete — Prior Talk feature stewardship and the current implementation history make this person the clearest available owner of the product choice.
  • Options:
    • Accept the simplification (recommended): Keep the new menu and global Talk ownership, explicitly accept the removed choices, and require upgrade plus real-browser proof before landing.
    • Preserve the choices: Retain auto-scroll and per-session Talk preferences while moving them to clearer supported Settings or advanced surfaces.
    • Split the redesign: Land dead-control cleanup and the cron-session fix separately, then review preference removal in a narrower PR.

Security
Cleared: The UI, local settings, tests, styles, and generated locale changes introduce no concrete security or supply-chain concern.

Review details

Best possible solution:

Keep the focused View menu and working cron filter, but remove the four existing user-choice surfaces only with explicit owner approval and verified fresh-install and upgrade behavior; otherwise retain those choices on clearer dedicated surfaces.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR proposes a deliberate Control UI redesign rather than fixing one reproducible current-main failure, although it also repairs a dead cron-session toggle.

Is this the best way to solve the issue?

Unclear: consolidating contextual controls is maintainable, but removing existing preferences is the best solution only if maintainers explicitly prefer simplification over preserving those choices elsewhere.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 156f4c89ed03.

Label changes

Label changes:

  • add P2: This is a substantial but non-emergency Control UI improvement with bounded web UI impact.
  • add merge-risk: 🚨 compatibility: Merging silently removes existing auto-scroll and per-session Talk choices for current browser users.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Only Testbox, unit, browser, and mocked E2E results are provided; add redacted screenshots, a recording, or live browser output, then update the PR body for automatic review or ask a maintainer for @clawsweeper re-review.

Label justifications:

  • P2: This is a substantial but non-emergency Control UI improvement with bounded web UI impact.
  • merge-risk: 🚨 compatibility: Merging silently removes existing auto-scroll and per-session Talk choices for current browser users.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Only Testbox, unit, browser, and mocked E2E results are provided; add redacted screenshots, a recording, or live browser output, then update the PR body for automatic review or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

What I checked:

Likely related people:

  • steipete: Prior merged Talk implementation/review history and all seven current branch commits connect this person most directly to the Control UI product choice and implementation. (role: Talk feature steward and current redesign author; confidence: high; commits: b5e5f2cede6c, dc01922312a0, 378e0110a454; files: ui/src/pages/chat/components/chat-controls.ts, ui/src/pages/chat/chat-realtime.ts, ui/src/pages/config/view.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 13, 2026
@steipete
steipete force-pushed the claude/settings-screen-redesign-034dcc branch from e16b1b4 to 4e9b970 Compare July 13, 2026 08:39
The composer gear popover mixed misplaced, mislabeled, and dead controls.
Replace it with a three-row View menu (Reasoning, Tool calls, Keep
commentary); drop the manual-refresh machinery and the auto-scroll modes
(near-bottom stays the only behavior); move the cron-session filter to the
sidebar sort menu as a working persisted toggle; move the send shortcut and
microphone picker to Settings -> Appearance -> Chat; delete the ephemeral
voice/model/sensitivity overrides in favor of the server talk config.
Settings keep an in-memory fallback when localStorage is blocked, and talk
sessions re-read persisted settings at launch.
@steipete
steipete force-pushed the claude/settings-screen-redesign-034dcc branch from 4e9b970 to 034de22 Compare July 13, 2026 08:40
@steipete
steipete merged commit dc89ee2 into main Jul 13, 2026
8 checks passed
@steipete
steipete deleted the claude/settings-screen-redesign-034dcc branch July 13, 2026 08:41

@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: 034de22e68

ℹ️ 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".

<openclaw-tooltip .content=${menuTitle}>
<button
class="chat-settings-chip ${settingsOpen ? "chat-settings-chip--open" : ""}"
class="chat-view-menu-trigger ${open ? "chat-view-menu-trigger--open" : ""}"

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.

P2 Badge Update the stale E2E selector

After this trigger class was renamed, ui/src/e2e/chat-composer-redesign.e2e.test.ts still measures .chat-settings-chip in the footer-centering poll, while the rendered button is now .chat-view-menu-trigger. In that E2E, document.querySelector(".chat-settings-chip") returns null and the poll never reaches a numeric value, so the composer redesign test times out before the new View-menu assertions run.

Useful? React with 👍 / 👎.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
…enu (openclaw#105904)

The composer gear popover mixed misplaced, mislabeled, and dead controls.
Replace it with a three-row View menu (Reasoning, Tool calls, Keep
commentary); drop the manual-refresh machinery and the auto-scroll modes
(near-bottom stays the only behavior); move the cron-session filter to the
sidebar sort menu as a working persisted toggle; move the send shortcut and
microphone picker to Settings -> Appearance -> Chat; delete the ephemeral
voice/model/sensitivity overrides in favor of the server talk config.
Settings keep an in-memory fallback when localStorage is blocked, and talk
sessions re-read persisted settings at launch.
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant