Repository navigation
feat(ui): start New Session in the background with Cmd/Ctrl+Enter - #197481
Conversation
On the New session page, Cmd/Ctrl+Enter now starts the draft in the background through the same submission path the command palette uses, instead of duplicating plain Enter. New session stays open for the next prompt and the started session appears in the sidebar. With the Cmd/Ctrl+Enter send shortcut selected, that chord remains the normal start and Cmd/Ctrl+Shift+Enter starts in the background. Draft sessions and native coding CLI starts have no background start, so modified Enter keeps starting them normally. The keyboard shortcuts dialog and docs list the chord. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 50f2c000-bc69-415a-9707-ba3c633d2313
|
🦞👀 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: needs changes before merge. What this changesThis PR makes Cmd/Ctrl+Enter start New Session drafts in the background under the default send preference and documents the shortcut. Example: On desktop with Enter selected as the send shortcut, type “Draft a planting plan” and press Cmd+Enter.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the shortcut change is coherent, but a duplicate chord definition introduces a confirmed CI failure. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI composer translates keyboard events and the existing send preference into foreground or background submission through DraftSubmissionFlow; the shortcut dialog displays the corresponding chords. flowchart LR
A[Keyboard event] --> B[New Session composer]
C[Send preference] --> B
B --> D[DraftSubmissionFlow]
D --> E[Existing session creation]
E --> F[Foreground chat or background acknowledgment]
C --> G[Shortcut dialog]
Technical reviewBest possible solution: Keep the existing submission flow and use one canonical definition of the shifted modifier chord. Do we have a high-confidence way to reproduce the issue? Main's foreground behavior is source-verifiable, the supplied browser screenshots show the proposed navigation change, and exact-head CI independently reports the duplicate-chord failure. Is this the best way to solve the issue? Changing the existing composer decision is the smallest implementation; the additional duplicate catalog entry is unnecessary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4092d358a35a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +10, Tests +7, Docs +2. Total +19 across 9 files. Added test files: 0. 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. 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 Reviewed November 11, 2026, 9:59 PM ET / November 12, 2026, 02:59 UTC. |
Keep /new on its normal composer while a background start is admitted. Consume the accepted draft without retaining a source-page transcript, restore focus, and reuse the command palette acceptance and recovery notice. Foreground navigation recovery and destination previews remain intact. Reuse the existing shifted modifier chord instead of defining a duplicate. Consolidate foreground recovery regressions to keep the test budget green without increasing its ceiling or dropping the scope-recovery assertions. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 29ea3aad-cf6b-4b39-b4c5-e578a20496dc
|
Maintainer verification on The first capture is the draft before the shortcut. The second shows the newly started session in the sidebar, the confirmation, and a new draft typed without clicking back into the composer. New session stays open, and the next draft survives completion. These captures use the production Control UI with synthetic Gateway responses. This proves the browser interaction and handoff, not a live model run. The temporary test edit was restored. |
|
Merged as Validation and CI exceptions are documented in the PR body. Human coauthorship was verified in the final squash commit. |
…enclaw#197481) Start a new session in the background from the launcher with the appropriate modifier shortcut, preserving the next draft and configured send gesture. Focused and browser checks, including Cmd+Enter on macOS, passed. The approved boot-JavaScript budget exception is documented in the PR. Co-authored-by: vyctorbrzezowski <[email protected]>


What Problem This Solves
New session needs the command palette’s Cmd/Ctrl+Enter background-start workflow without leaving a partial transcript above the next prompt.
User Impact
User impact: Cmd/Ctrl+Enter starts a session in the background while keeping the normal
/newscreen. The prompt stays in the composer until creation is accepted, then clears and regains focus. The session appears in the sidebar, with the same start, completion, and recovery notices as the command palette.Why This Change Was Made
The existing draft submission owner still owns creation, reconnects, attachments, and recovery. Background starts no longer populate the source page’s foreground transcript preview. The created session retains its own prompt and attachments. The palette and New session now share one acceptance/recovery notice; foreground navigation-failure recovery remains intact.
The shortcut dialog and docs describe the chord. The duplicate shifted-modifier catalog entry found in the original PR was removed in favor of the existing definition.
Evidence
8f4952190535ff131f035b0555821f4ff186c117, with full submission-owner context supplied. The subsequent identical-chord deduplication and test consolidation were checked with the focused run above.Proof qualification: the real-Gateway captures use installed runtime
4947e40db109a28c1fbdcf692eb431db19d46720serving the task-built Control UI from an explicit root, not external-model inference. A local runtime rebuild was refused by the managed-service publication guard. The UI build succeeds with startup/CSS bundle-budget warnings and an additional approximately 0.9 KiB new-route warning; no limits were raised. The final descriptor deduplication does not change the rendered chord or captured behavior.Before / after
Isolated real Gateway, synthetic content, macOS key labels, light theme, 1280×800. Before is the original base UI after Cmd+Enter; after is the corrected flow after successful completion.
Full lifecycle video · 2×
Attached below: prompt → Cmd+Enter → clean New session → completion → open the result → repeat with a second task.
Keyboard shortcuts dialog
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
full-lifecycle-2x.mp4
Maintainer verification
165 focused tests, both background-start browser scenarios and an additional native Mac Cmd+Enter run passed. The captures show the started session and the next draft on the unchanged launcher. Inspected captures and proof limits.
Maintainer integration
Background New Session passed 165 focused tests, both existing browser scenarios, and a separate Cmd+Enter run on macOS. The new session starts while the launcher and next draft remain in place. Inspected Mac browser captures.
The remaining CI failure is the new-page boot JavaScript gzip budget: 787.3 KiB versus 787.0 KiB (run 43158439523, job 130984280920). The maintainer explicitly authorized the budget exception. Other applicable CI and security checks passed; no feature or fix was removed to fit the limit.