Repository navigation
improve(ui): replace the chat settings popover with a composer view menu - #105904
Conversation
There was a problem hiding this comment.
💡 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; |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
💡 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, | |||
| {}, | |||
There was a problem hiding this comment.
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 👍 / 👎.
34d05f8 to
e16b1b4
Compare
There was a problem hiding this comment.
💡 Codex Review
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".
|
Codex review: needs real behavior proof before merge. Reviewed July 12, 2026, 11:40 PM ET / July 13, 2026, 03:40 UTC. Summary 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.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest 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 changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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
|
e16b1b4 to
4e9b970
Compare
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.
4e9b970 to
034de22
Compare
There was a problem hiding this comment.
💡 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" : ""}" |
There was a problem hiding this comment.
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 👍 / 👎.
…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.
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:
handleChatManualRefresh, generation/frame bookkeeping) is deleted.chatAutoScrollsetting, its normalizer, and the mode branches inscroll.tsare gone.resolveSessionNavigationnow takesshowCron). The old popover toggle mutatedsessionsHideCron, which no code consumed.realtimeTalkInputDeviceId). Both are reachable via settings search.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
chatAutoScrollvalue is simply ignored — no migration needed for a client display pref.Net −1,310 lines.
Evidence
pnpm check:changed(lint + typecheck lanes) green on Blacksmith Testbox.chat-controls,scroll,chat-state,chat-send,chat-view,settings.node,navigation(new cron-visibility test),chat-responsive.browser, configview.browser.chat-composer-redesign), send shortcut via Settings applyingaria-keyshortcutsin chat (chat-flow), microphone picked in Settings drivingdeviceId: { exact: "usb" }at talk start and blocked-permission alert on the Settings page (browser-talk-start-stop).ui:i18n:syncrun for the en.ts key changes (removed popover keys, addedchat.view.*,sessionsView.showCronSessions,configView.chatPrefs.*).