Repository navigation
fix(ui): Cmd+K loses its mode on reload and ignores Cmd+Enter in Search - #199173
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 4418532c-a257-43a8-af6a-8967338cb24d
|
🦞👀 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: blocked before merge. What this changesThis PR remembers the palette’s selected mode across browser reloads and enables Cmd/Ctrl+Enter to start background sessions from Search. Example: Choose Compose, reload the page, and reopen Cmd+K.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 2 items remain Keep this maintainer-authored PR open: the changes remain useful on current main, but Search submission can still fail silently before sending a request. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI palette routes keyboard input through loading and ready views to shared mode, search, and background-session draft owners. flowchart TD
A[Keyboard input] --> B[Loading palette]
A --> C[Ready palette]
B --> D[Shared mode owner]
C --> D
D --> E[Browser preference]
B --> C
C --> F[Session draft owner]
F --> G[Gateway session creation]
Technical reviewBest possible solution: Retain the existing mode and submission owners, expose blocked Search submissions with an in-product recovery action, and preserve existing preferences during upgrade. Do we have a high-confidence way to reproduce the issue? Current-main source establishes both reported paths, and the PR reports three red-before/green-after browser scenarios; no target code was executed during this read-only review. Is this the best way to solve the issue? Persisting explicit choices in CommandPaletteModes and removing both shortcut gates is the smallest focused approach, but the newly reachable Search submission path also needs visible admission failures. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 088178a6559f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +18, Tests +145, Docs +3. Total +166 across 7 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel 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 Reviewed November 14, 2026, 3:37 PM ET / 20:37 UTC. |
|
Merged via squash.
|
…ch (openclaw#199173) * fix(ui): remember command palette mode and restore start shortcut Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): Cmd+K loses its mode on reload and ignores Cmd+Enter in Search Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 4418532c-a257-43a8-af6a-8967338cb24d * fix(ui): explain blocked palette submissions in Search * fix(ui): derive current palette submission feedback --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Related: #186059
What Problem This Solves
Fixes: Cmd+K forgets the last chosen Search or Compose mode after a page reload, and Cmd/Ctrl+Enter does nothing in Search instead of starting a new session.
User Impact
Users can reopen Cmd+K in their last chosen mode and start a background session from either mode without replacing their current conversation or draft. The design, layout, and styling are unchanged.
The mode choice is remembered in this browser when local storage is available; it is not account-synced. Prompt text and attachments are not persisted by this change.
Why This Change Was Made
The existing mode owner now remembers explicit choices across reloads, including the loading-to-ready handoff. Automatic switches caused by long prompts or attachments do not overwrite that choice. Both the loading and ready palette again route Cmd/Ctrl+Enter through the existing session-creation flow.
Evidence
pnpm tsgo:ui, formatting, and targeted lint pass. Lint retains one pre-existing Solid reactivity warning outside the changed lines.Requested by and co-authored with @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
Maintainer validation
A read-only user could press Cmd/Ctrl+Enter in Search and receive no explanation. The shared palette draft now derives the current refusal notice from the existing submission owner, and the existing alert is visible in both modes. Transient loading gates are not stored as submission errors, so a defaults refresh can complete and the user can retry normally. This does not change permission decisions, persist an automatic mode switch, or discard the draft.
The added regression failed on the incoming head because the alert was absent. With the final repair, 115 focused tests passed across palette shortcuts, mentions, draft submission, loading handoff, submit gates and agent/defaults invalidation. This includes the existing regression that requires a transient defaults refresh to leave the actual error state empty. Four Chromium browser scenarios passed: the three original mode/shortcut scenarios plus the refusal flow shown below. UI typecheck and scoped formatting/lint passed; the existing reactivity warning outside the changed lines remains. Browser evidence uses the production UI with a simulated Gateway, not a real model run.
The final correction received an independent P0–P2 review with no actionable findings. The browser refusal flow was rerun on the final code and remains visually unchanged from the capture above.
Validated source published at
645ca32a2ea9458a4e944405441bf8b3b7fcf012; current-head CI is pending.