Repository navigation
feat(ui): render queued follow-ups as transcript bubbles - #131909
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 5:59 PM ET / 21:59 UTC. ClawSweeper reviewWhat this changesThe PR shows queued follow-up messages as stable user bubbles in the Control UI transcript, with queue controls attached beneath each bubble rather than duplicated in the composer. Merge readinessKeep open. The branch’s queued-message transcript projection is still absent from current main, and no introduced correctness or security defect was identified in the reviewed UI path. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI queues follow-up messages while an agent run is active, then combines queue rows, persisted history, and streamed output into the chat transcript. Users can edit, steer, reorder, retry, or remove a queued item before it becomes durable history. flowchart LR
A[User submits follow-up] --> B[Queued send]
B --> C[Transcript projection]
C --> D[User bubble]
D --> E[Queue controls]
C --> F[Live stream]
B --> G[Composer local commands]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +101, Tests +256, Docs +1, Other 0. Total +358 across 25 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the transcript-tail projection with its stable pending-to-history identity and attached queue controls after normal exact-head CI and maintainer review. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a feature PR rather than a report of broken current-main behavior; focused source and UI test coverage exercises the proposed flow. Is this the best way to solve the issue? Yes: the branch keeps the existing queue as the delivery owner, projects pending work into the transcript, and uses one stable identity through history handoff. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3bd3b2730c23. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
6a1de00 to
5a0988b
Compare
|
Rebased validation for queued-send transcript bubbles, head The only rebase conflict was Fresh startup JS: 345371 B; verification rebuild: 345335 B. The recorded baseline is now 345371 B, down 3078 B from main's 348449 B and 232 B above the previous branch measurement after newer upstream changes. Neither conflicting baseline was retained. Upstream agent-tool-policy chunking remains part of main. Existing 512 B growth + 64 B variance remain unchanged, giving a 345947 B enforcement limit; the 350 KiB ceiling and other budgets are unchanged. Commit The renderer remains synchronous because it owns restored offline/error state as well as controls. No unrelated boot splitting, new renderer lifecycle, identifier/format trick, or gate-logic change was added. Original same-toolchain attribution remains historical context: +30 B initial startup and +911 B lazy boot, chiefly +669 B queue/message renderer and +197 B chat projection; manifest regeneration saved only 33 initial bytes and was reverted. Fresh proof:
Production +137/-36; tests +435/-179; docs +3/-2; budget config +2/-2. The budget repair itself adds no production or test code. Normal queue delivery, persistence, ordering, and history handoff remain with their existing owners. Prior CI run 33212031042 passed the original budget failure, then exposed three stale recovery selectors and one inventory executable launch returning The screenshots below were personally inspected and show synthetic mocked-Gateway data. The attached after/admission captures are from the preceding rebased head; the feature patch remains identical and the same four Chromium suites passed again on this head. They are Chromium UI proof with a mocked Gateway, not a new authenticated live-provider round trip. The previously documented full live queued-follow-up/settings-reconciliation gap remains explicit. Latest completed ClawSweeper review reported no code/security findings; its remaining next step was exact-head CI and maintainer review. The rebase and browser proof are complete; exact-head CI is now green. The earlier rebase/validation Rank-up request has been completed; the latest review lists no additional Rank-up moves. Before: composer-attached queued message. After: two separate queued bubbles below the growing stream. Admission: first bubble stays in place while the second remains queued.
Current-head Linux CI startup gate: 345367 B against 345947 B enforcement, with the recorded 345371 B baseline and unchanged allowances. Every selected CI job passed, including all UI shards and the Gateway shard that timed out on the superseded head. |
5a0988b to
e8a7de1
Compare
ab44900 to
fad5b25
Compare
A follow-up sent during an active run previously appeared only as a composer-attached queue card until it started; the transcript gave no immediate acknowledgment and the reply appeared to ignore the send. Queued messages now render as real user bubbles at the transcript tail, one bubble per submit in queue order, with the live stream continuing above them. The bubble keeps one stable identity from submit through queue reorder, admission, and durable-history handoff, so nothing remounts or jumps. The existing queue controls (steer now, edit, reorder, remove, retry) attach beneath the queued bubble; the composer-attached cards no longer duplicate message content and keep only local-command cards. Supersedes the ordinary-message placement half of #127823.
CI run 33212031042 exposed three recovery cases still looking for message text inside the old composer queue item. Assert the user bubble and its attached reconnect state while retaining all recovery and exact-send assertions. The old selector fails locally; all eight recovery cases pass with the update. No production, mock, or timeout changes.
Replace the conflicting budget adjustment with a fresh production build on main a79e651. Startup JS measures 345371 B; an independent verification rebuild measures 345335 B. Record the measured 345371 B baseline rather than either conflicting value. This lowers main's 348449 B baseline by 3078 B and raises the superseded branch measurement by 232 B after upstream changes. The feature and recovery-test patches are unchanged by the mechanical rebase. Keep the existing 512 B growth allowance and 64 B build variance, yielding a 345947 B enforcement limit and 576 B measured headroom. The 350 KiB baseline ceiling and all other performance budgets remain unchanged. Immediate queued-send acknowledgment and restored offline/error controls retain their existing synchronous renderer. No unrelated boot splitting, new lazy-render architecture, or gate-logic change is introduced here.
fad5b25 to
6ef6366
Compare
|
Merged via squash.
|
|
Closing the live-proof gap documented in the PR body: with #131958 (send-dispatch settings wait) landed, the full authenticated round trip now completes on an isolated live gateway (merged main dist, real Chrome, ChatGPT-backed |
|
Screenshots for this change — before/after from the mocked-gateway proof plus live captures on current
|
…1909) * feat(ui): render queued follow-ups as transcript bubbles A follow-up sent during an active run previously appeared only as a composer-attached queue card until it started; the transcript gave no immediate acknowledgment and the reply appeared to ignore the send. Queued messages now render as real user bubbles at the transcript tail, one bubble per submit in queue order, with the live stream continuing above them. The bubble keeps one stable identity from submit through queue reorder, admission, and durable-history handoff, so nothing remounts or jumps. The existing queue controls (steer now, edit, reorder, remove, retry) attach beneath the queued bubble; the composer-attached cards no longer duplicate message content and keep only local-command cards. Supersedes the ordinary-message placement half of openclaw#127823. * test(ui): find recovered queued messages in transcript bubbles CI run 33212031042 exposed three recovery cases still looking for message text inside the old composer queue item. Assert the user bubble and its attached reconnect state while retaining all recovery and exact-send assertions. The old selector fails locally; all eight recovery cases pass with the update. No production, mock, or timeout changes. * build(ui): refresh startup budget for queued-send bubbles Replace the conflicting budget adjustment with a fresh production build on main c36b413. Startup JS measures 345371 B; an independent verification rebuild measures 345335 B. Record the measured 345371 B baseline rather than either conflicting value. This lowers main's 348449 B baseline by 3078 B and raises the superseded branch measurement by 232 B after upstream changes. The feature and recovery-test patches are unchanged by the mechanical rebase. Keep the existing 512 B growth allowance and 64 B build variance, yielding a 345947 B enforcement limit and 576 B measured headroom. The 350 KiB baseline ceiling and all other performance budgets remain unchanged. Immediate queued-send acknowledgment and restored offline/error controls retain their existing synchronous renderer. No unrelated boot splitting, new lazy-render architecture, or gate-logic change is introduced here.
…#132294) Reverts openclaw#131909 (31c9468) per operator product decision after live review — queued messages remain composer-attached; the send-dispatch fix (openclaw#131958) is unaffected.








What Problem This Solves
A follow-up sent while the agent is still streaming gave no immediate acknowledgment in the transcript: it appeared only as a composer-attached queue card until admission, so the send looked ignored. Operator request: the message should immediately appear in the chat stream at the very bottom, with the in-flight reply continuing to grow above it, and each further follow-up appearing as its own bubble.
Why This Change Was Made
Queued-but-not-started sends now render as real user bubbles at the transcript tail, one bubble per submit in queue order. The live stream block naturally stays above them (they are user rows in the causal projection, no special-casing). Each bubble keeps one stable identity from submit through queue reorder, admission, and durable-history handoff, so nothing remounts or jumps. The existing queue capabilities — steer now, edit, reorder, remove, retry — attach beneath the queued bubble, and the composer-attached cards stop duplicating message content (local-command cards remain). This deliberately supersedes the ordinary-message placement half of #127823; its queue mechanics, persistence, and admission semantics are untouched.
User Impact
Sending during an active run immediately "looks like it worked": your message is in the stream at the bottom, the reply keeps writing above it, and the first queued message is what the agent sees at the next admission.
Evidence
check-changedexit 0; Codex autoreview clean (0.99).chat-send-delivery.tssettings loop) — documented with evidence and being fixed separately.