Skip to content

fix: keep the composer visible while new chats start - #165091

Merged
steipete merged 15 commits into
mainfrom
openclaw/keep-composer-visible-while-messages-queue
Oct 10, 2026
Merged

steipete merged 15 commits into
mainfrom
openclaw/keep-composer-visible-while-messages-queue

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 101 focused unit tests pass on the final dependency installation (22.99s wrapper / 21.42s Vitest). The concurrent-pane regression fails on the original implementation and passes after the fix.
  • All 56 scenarios in five browser suites pass on the integrated source (116.29s). After the frozen dependency refresh and manifest regeneration, all 22 targeted startup, ordering, rename, and model-refresh cases pass again (76.59s).
  • Changed browser-file test times: transition matrix 37.506s, instant-thread 25.436s, active-turn recovery 12.707s, mutation scope 10.077s. The existing transition matrix covers real rich-content restoration across viewport, theme, and reduced-motion states; no new matrix cases were added.
  • Fresh independent P0–P2 reviews of the implementation and final test corrections found no actionable defects. The final integration takes main’s independently landed steering and rename test repairs; the startup-composer delta is preserved.
  • UI and UI-test typechecks, i18n, changed-file guards, targeted lint/style checks, dead-export scans, and production build pass. The build still emits an inherited startup-size diagnostic; no budget was relaxed. Earlier broad core lint found 20 line-limit violations in files byte-identical to the pinned main baseline; hosted lint passed on the first published revision.
  • Initial CI caught the obsolete disabled-composer assertion. Its transition matrix now checks enabled input, no empty send, and exact original-prompt restoration. Three secondary failures were reproduced on CI's exact main parent 9948a4b83404 without 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.
  • Before/after images contain synthetic fixtures only and were inspected both locally and rendered in the PR. Header and editor geometry remain stable at admission on mobile and desktop.
  • Final conflict repair passes 106 unit tests (17.65s wrapper), 23 affected browser cases (81.02s), and UI typechecking. ClawSweeper completed current-head review with zero findings. CI run38027779753 has one failing job: two unchanged sidebar expectations require nested sessions to lack Move to group, although main intentionally supports it. Both failures reproduce on its exact main parent f659a35 (18.63s); all six owning menu/test blobs match the tested merge. Every other job succeeded or was intentionally skipped. Landing uses the documented inherited-failure exception; CI is not described as green.

Worked on by

Work sessions

Before

Before: startup composer disabled

After

After: follow-ups queued and unfinished draft editable

roboclaw-bot and others added 2 commits October 4, 2026 20:24
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
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 4, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The startup composer is disabled until the session is confirmed.
  • After: Follow-ups queue in submission order, while “Still writing my next message” remains editable and survives the handoff.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent implementation with inspected visual proof and focused recovery coverage; no actionable defects found, while hosted CI retains an attributed baseline failure.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots show editable startup input, queued followers, and a separate unfinished draft; reported browser runs exercise canonical handoff, ordering, rejection, reconnect, and principal changes through the Control UI with a mocked Gateway.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users must wait for session startup before typing or queuing their next message.
Reason: The collaborator-authored direction removes a visible interruption without adding configuration or replacing the existing delivery owner.

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
Reviewed head: c378a50608e95d5c6f60367fe2e4bb914d32ea61

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Startup preview and chrome changes intended behavior with a stated reason (88d5171: Open a read-only preview immediately without mounting real session controllers before acceptance.)
  • Stable startup layout keeps the original intent (da08dc8: Keep the header, initial prompt, and disabled composer in their final positions during admission.)
  • Initial-turn send hold changes intended behavior with a stated reason (05bd540: Preserve retained first-turn custody and prevent later delivery overtaking recovery; the PR explains its narrower local-admission allowance.)
  • Shared outbox ownership keeps the original intent (66ff7b6: Centralize outbox projections across panes; the added admission barrier belongs to that existing owner.)
  • Incognito draft handling keeps the original intent (d099094: Keep private attachment and draft persistence scoped to the captured conversation and account.)
  • Generated boot inventory keeps the original intent (11828a0: Record route-reachable modules without eagerly loading unrelated chat code; the PR records regeneration through its existing owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +981, Tests +731, Docs +8. Total +1720 across 39 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 24 1082 101 +981
Tests 14 783 52 +731
Docs 1 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 39 1873 153 +1720

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Improves a bounded Control UI workflow by allowing follow-up composition during session startup.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-04T23:06:56.618Z sha da3a6ff :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T23:21:06.298Z sha 6e4cf50 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T23:38:21.583Z sha dc4cb8b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T03:08:04.952Z sha dc4cb8b :: needs changes before merge. :: [P2] Stop queued callers after transfer admission succeeds | [P2] Update the retained cloud module-boundary assertion
  • reviewed 2026-10-10T03:23:15.822Z sha dc4cb8b :: needs changes before merge. :: [P2] Stop queued callers after transfer admission succeeds | [P2] Update the retained cloud module-boundary assertion
  • reviewed 2026-10-10T04:04:59.926Z sha fb6f3ed :: needs changes before merge. :: [P2] Update the transition matrix for the enabled startup composer
  • reviewed 2026-10-10T05:12:42.544Z sha 81bb2e5 :: needs changes before merge. :: none
  • reviewed 2026-10-10T05:39:32.258Z sha c378a50 :: needs maintainer review before merge. :: none

Reviewed October 10, 2026, 2:22 AM ET / 06:22 UTC (Revision 11).

roboclaw-bot and others added 2 commits October 4, 2026 22:45
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
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 4, 2026 22:46
roboclaw-bot and others added 2 commits October 4, 2026 22:52
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
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@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.

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

roboclaw-bot and others added 2 commits October 4, 2026 23:02
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
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 4, 2026
roboclaw-bot and others added 2 commits October 4, 2026 23:15
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
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 4, 2026
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 52a9f46d-b709-4fd0-9623-71882b8c7679
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete steipete self-assigned this Oct 10, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor

@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.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

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.
@steipete

Copy link
Copy Markdown
Contributor

@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.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor

@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.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@steipete
steipete merged commit ac93c14 into main Oct 10, 2026
108 of 111 checks passed
@steipete
steipete deleted the openclaw/keep-composer-visible-while-messages-queue branch October 10, 2026 06:28
@steipete

Copy link
Copy Markdown
Contributor

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants