Repository navigation
fix: keep unsent Cmd+K Compose drafts when reopened - #207307
vyctorbrzezowski merged 1 commit into
Conversation
|
🦞👀 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: passed. What this changesThis PR preserves unsent Cmd+K Compose text across dismissal and reopening, including during the initial lazy load. Example: Type “Compare the two release notes” in Compose, press Escape, and reopen Cmd+K.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a current draft-loss bug, and review found no actionable correctness or security defects. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI shell holds input while the palette loads, then transfers it to the existing session-draft owner; explicit submission uses the background-session creation flow. flowchart LR
A[Keyboard or palette action] --> B[Shell palette owner]
B --> C[Loading input custody]
C --> D[Loaded palette state]
B --> D
D --> E[Session draft owner]
E --> F[Background session creation]
Technical reviewBest possible solution: Retain Compose text through the existing draft owners while preserving fresh Search queries, canceled queued sends, and account-scope cleanup. Do we have a high-confidence way to reproduce the issue? Current-main source establishes both reset paths, and the author supplies base-failing browser regressions plus before/after application captures; this review did not execute target code. Is this the best way to solve the issue? The patch is a small, complete repair at the existing loading and session-draft owners, without introducing another storage or submission path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 23ea8a9a3c51. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +12, Docs 0. Total +14 across 6 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 28, 2026, 2:16 AM ET / 07:16 UTC. |
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
(cherry picked from commit 1a79168) Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 1a79168) Release adaptation: Populate the Compose input before dismissal in the reopen fixture; preserve the existing retained-text and mode assertions. No runtime changes to the donor. Companion audit: PR #207307 is selected. Keep Cmd+K draft ownership distinct from the earlier Send-after-model-switch fix and normal composer state. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Closing the Cmd+K palette while writing in Compose erased a text-only prompt. Reopening the palette showed an empty field, so the author had to write it again.
User Impact
Press Escape or Cmd/Ctrl+K, then reopen the palette to continue the same draft. This works even on the first open, while the palette is still loading. Search queries still start fresh, and reopening never sends a message.
Why This Change Was Made
Compose now retains its existing in-memory draft on dismissal, with or without an attachment. The loading view also keeps the draft for handoff, but cancels any queued send. No prompt is written to browser storage or carried across a reload or account change.
Evidence
Reopen Compose after Escape
Chromium, isolated Gateway, synthetic prompt: type “Compare the two release notes”, press Escape, reopen with Cmd+K. Screenshots: installed UI at
ef21b5827db0versus candidate51ccdb8ea25a. The automated regression was also red on the PR base (7cbf17b5819b).7cbf17b5819b..51ccdb8ea25areported no actionable P0/P1 findings in the selected diff. The review did not independently exercise account switching or subsequent manual submission.🦞 Made with OpenClaw