Repository navigation
fix: keep the composer visible while new chats start - #165091
Conversation
Queue follow-up input during session creation, then transfer it to the confirmed session outbox without losing draft or attachment custody. Preserve ordering, initial-turn failure holds, and authenticated recovery boundaries. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c6548986-7403-4983-bdba-33ec5e69fff8
|
🦞👀 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 maintainer review before merge. What this changesThis PR lets users draft, attach files, and queue follow-up messages while a new conversation starts. Example: Submit “start the synthetic thread,” then type two follow-ups during session creation.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR adds useful startup queuing that current main lacks, and no actionable patch defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI retains input before session creation, then transfers it to the confirmed conversation’s existing outbox for authorized, ordered delivery. flowchart LR
A[Initial prompt] --> B[Session creation]
C[Startup composer] --> D[Retained local input]
B --> E[Confirmed conversation]
D --> E
E --> F[Existing outbox]
F --> G[Gateway delivery]
Technical reviewBest possible solution: Retain startup input locally and hand it once to the existing outbox while preserving initial-turn ordering and authenticated recovery boundaries. Do we have a high-confidence way to reproduce the issue? Current-main source explicitly disables the startup composer, and the inspected before screenshot shows that state; no target code was executed during this read-only review. Is this the best way to solve the issue? The implementation keeps provisional input with the retained draft and reuses the established outbox after confirmation, avoiding a second delivery path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7a1dc960249. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +981, Tests +731, Docs +8. Total +1720 across 39 files. Added test files: 2. View PR surface stats
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 HistoryReview history (10 earlier review cycles; latest 8 shown)
Reviewed October 10, 2026, 2:22 AM ET / 06:22 UTC (Revision 11). |
Preserve main test refactors while retaining startup queuing regressions. Use the same equivalent-session identity throughout accepted follow-up transfer, with outbox admission pinned to the server-accepted key. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 402522ef-23ac-4a90-910b-4f33973c9e9d
Depend on the connection, upload configuration, lifetime signal, and send shortcut instead of the full app context. This removes the type-import cycle without changing retained input custody. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 78fa0e03-26f9-4cb8-9868-aef1c9fb3ae8
|
@clawsweeper re-review Conflicts are resolved and the PR is ready. The CI-reported type-import cycle is fixed with a narrow dependency contract; the exact cycle check now passes. Current head: 21209d5. |
|
🦞👀 Re-review progress:
|
Keep the relocated access-denial tests unchanged in purpose, and move the initial-turn queue/delivery regression to their current owner. Initial startup holds delivery rather than queue admission. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6875000b-4eca-41fb-898b-25727efb6ce2
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Cover provisioning, syncing and starting with an unfinished initial turn. Startup holds delivery rather than disabling follow-up queue admission; existing movement and recovery restrictions remain covered. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 504e7e3f-d7f8-4ca2-ab38-703623111678
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 52a9f46d-b709-4fd0-9623-71882b8c7679
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Integrate current chat chrome while retaining editable startup input and ordered canonical outbox handoff. Keep completed admissions terminal across concurrent panes, remove redundant queue policy and startup copy, and update tests for the current outbox contract.
|
@clawsweeper re-review Recovered the interrupted work and integrated current main while preserving startup header/mobile layout. Follow-up input remains editable and queues behind the initial prompt. Fixed a reproduced concurrent-pane handoff race that could reopen a completed admission and erase a later delivery failure. Removed redundant queue policy and startup copy, and corrected obsolete startup/test-interface expectations. Current head: fb6f3ed. Fresh independent P0–P2 review is clean. Focused units, startup/recovery browser scenarios, stable mobile/desktop geometry, UI build, and before/after image rendering have been verified. Details and inherited size warning are in the PR body. |
|
🦞👀 Re-review progress:
|
Preserve enabled startup input through the transition matrix. Match accepted steering order and use inline rename for deferred background-mutation coverage after main made sidebar renames modal. Integrate the CI base changes and regenerate the startup manifest without changing the reviewed composer implementation.
|
@clawsweeper re-review Current head: 81bb2e5. Fixed the obsolete startup transition expectation while retaining prompt/attachment restoration and preventing empty or premature sends. Exact CI main parent 9948a4b independently reproduces all three secondary failures without this patch. Aligned the steering-order test with main's accepted-input ordering and the mutation-scope test with its real inline rename flow, preserving dedicated modal coverage. The intermittent model-refresh failure is inherited and remains recorded; a passing replay is not claimed as its fix. All 56 integrated browser scenarios pass; 22 targeted cases and 101 units pass after frozen dependency refresh. UI and UI-test types pass. Fresh independent P0–P2 review of the test corrections is clean, and all 23 previously reviewed production files remain unchanged. Updated proof and timings are in the PR body. |
|
🦞👀 Re-review progress:
|
Take the canonical main versions of the independently landed steering and rename test repairs. Preserve the reviewed startup-composer delta and regenerate its boot inventory. Validate the affected startup and recovery contracts after integration.
|
@clawsweeper re-review Current head: c378a50. Resolved the merge conflict by taking main's independently landed steering and rename test repairs (5c7d739); these no longer appear in this PR's diff. The startup-composer change and corrected transition matrix remain intact. After integration: 106 focused units, 23 affected startup/recovery browser cases, and UI typechecking pass. Boot inventory regenerated by its owner. The prior review found no source defect; its merge-conflict hold is now resolved. Baseline attribution and inspected screenshots remain in the PR body. |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: keep the composer visible while new chats start Queue follow-up input during session creation, then transfer it to the confirmed session outbox without losing draft or attachment custody. Preserve ordering, initial-turn failure holds, and authenticated recovery boundaries. Co-authored-by: steipete <[email protected]> * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c6548986-7403-4983-bdba-33ec5e69fff8 * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 402522ef-23ac-4a90-910b-4f33973c9e9d * refactor: narrow startup composer dependencies Depend on the connection, upload configuration, lifetime signal, and send shortcut instead of the full app context. This removes the type-import cycle without changing retained input custody. Co-authored-by: steipete <[email protected]> * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 78fa0e03-26f9-4cb8-9868-aef1c9fb3ae8 * test: align startup access coverage with queued input Keep the relocated access-denial tests unchanged in purpose, and move the initial-turn queue/delivery regression to their current owner. Initial startup holds delivery rather than queue admission. Co-authored-by: steipete <[email protected]> * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6875000b-4eca-41fb-898b-25727efb6ce2 * test: keep placement startup composer available for queues Cover provisioning, syncing and starting with an unfinished initial turn. Startup holds delivery rather than disabling follow-up queue admission; existing movement and recovery restrictions remain covered. Co-authored-by: steipete <[email protected]> * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 504e7e3f-d7f8-4ca2-ab38-703623111678 * test: cover queued follow-ups during cloud startup recovery Align saved, ambiguous and runtime-load recovery scenarios with editable startup input. Assert no premature delivery or replay, eventual follow-up dispatch, and preservation of separately unfinished text. Co-authored-by: steipete <[email protected]> * fix: keep the composer visible while new chats start Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 52a9f46d-b709-4fd0-9623-71882b8c7679 --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes: the composer cannot accept follow-up input while a new chat is starting.
User Impact
Keep typing, attach files, and queue follow-ups during startup. Messages wait behind the initial prompt and send in order to the confirmed session. Failed creation preserves the original prompt, queued input, and unfinished draft for retry.
Before acceptance, input stays in the current tab with reload protection. A rejected initial prompt keeps its followers paused for review. Existing account, incognito, read-only, and archived-session restrictions remain in force.
Why This Change Was Made
The retained creation draft owns input until the confirmed conversation's existing outbox accepts it. The startup view reuses the normal composer and current header/layout without mounting session controllers or querying session-scoped MCP resources prematurely.
Recovery also fixes a concurrent-pane race: once a batch is admitted, another pane cannot reopen it and overwrite a later delivery failure. Interrupted admissions remain resumable. Removed a redundant queue-state helper and startup hint; the editor no longer jumps vertically at admission.
Evidence
9948a4b83404without this patch: accepted-steer ordering, pending sidebar-rename interaction, and intermittent model-refresh visibility. The first two tests now follow main's current contracts. The model-refresh case is unchanged; its passing replay is not claimed as a fix.Worked on by
Work sessions
Before
After