Repository navigation
fix(ui): drop duplicate offline outbox band from composer - #170352
Conversation
Queued rows (and inline queued sends) already show Waiting for reconnect
per item, so the composer's '{count} in this conversation's outbox' band
repeated the same state.
|
🦞👀 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 changesRemoves the composer’s aggregate offline outbox notice while preserving individual queued-message statuses. Example: The Gateway disconnects with two messages queued.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the owner-approved simplification is useful and correctly implemented, but the previously reported documentation mismatch remains. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI composer consumes connection and conversation queue state to render message controls, queued rows, and actionable notices. flowchart TD
A[Gateway connection state] --> B[Chat pane]
C[Conversation outbox] --> B
B --> D[Composer view]
D --> E[Queued message statuses]
D --> F[Errors and disabled reasons]
Technical reviewBest possible solution: Keep the focused simplification and update the reconnect guide to describe the retained per-message statuses. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically renders the count band for offline queued messages, matching the supplied before screenshot; no target code was executed during this review. Is this the best way to solve the issue? Removing the presentation branch and its internal plumbing preserves the existing queue owner and actionable notices without adding another state mechanism. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 335d12304b01. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -10, Tests -15. Total -25 across 6 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 (2 earlier review cycles)Reviewed October 12, 2026, 8:07 PM ET / October 13, 2026, 00:07 UTC (Revision 3). |
…box-band # Conflicts: # ui/src/i18n/.i18n/ar.meta.json # ui/src/i18n/.i18n/catalog-fallbacks.json # ui/src/i18n/.i18n/de.meta.json # ui/src/i18n/.i18n/es.meta.json # ui/src/i18n/.i18n/fa.meta.json # ui/src/i18n/.i18n/fr.meta.json # ui/src/i18n/.i18n/hi.meta.json # ui/src/i18n/.i18n/id.meta.json # ui/src/i18n/.i18n/it.meta.json # ui/src/i18n/.i18n/ja-JP.meta.json # ui/src/i18n/.i18n/ko.meta.json # ui/src/i18n/.i18n/nl.meta.json # ui/src/i18n/.i18n/pl.meta.json # ui/src/i18n/.i18n/pt-BR.meta.json # ui/src/i18n/.i18n/ru.meta.json # ui/src/i18n/.i18n/th.meta.json # ui/src/i18n/.i18n/tr.meta.json # ui/src/i18n/.i18n/uk.meta.json # ui/src/i18n/.i18n/vi.meta.json # ui/src/i18n/.i18n/zh-CN.meta.json # ui/src/i18n/.i18n/zh-TW.meta.json
|
Merged via squash.
|
The cloud-startup recovery fixture retained the positive offline-band expectation after #170352 deliberately removed that duplicate UI. Assert absence, matching the sibling outbox contract; retain all draft, queue, attachment, session, retry and subsequent-send assertions. CI 38330636342: 18 successful jobs, 28 skipped, no failures. Changed browser file: 8/8, 27.634 seconds. Selected typecheck, lint, source guards, architecture and ratchets pass; independent review found no actionable defects. Test-only change, +1/-3 lines; no runtime or database behavior change.
…70352) Queued rows (and inline queued sends) already show Waiting for reconnect per item, so the composer's '{count} in this conversation's outbox' band repeated the same state.
…70477) The cloud-startup recovery fixture retained the positive offline-band expectation after openclaw#170352 deliberately removed that duplicate UI. Assert absence, matching the sibling outbox contract; retain all draft, queue, attachment, session, retry and subsequent-send assertions. CI 38330636342: 18 successful jobs, 28 skipped, no failures. Changed browser file: 8/8, 27.634 seconds. Selected typecheck, lint, source guards, architecture and ratchets pass; independent review found no actionable defects. Test-only change, +1/-3 lines; no runtime or database behavior change.
After a cloud startup failure, a disconnected chat no longer said that the initial message was unresolved or what to do next. 7661ce5 (#170052) dropped the composer band's pending-send fallback so that connection recovery is explained only on the busy Send button. That is right while connected, where Send is held. Offline, Send stays enabled so later turns can enter the outbox, so the unresolved-initial-turn guidance had no remaining surface. Restore the band for the disconnected state only. Connection-recovery notices stay on Send, as #170052 intended. The cloud startup failure e2e assertion returns to the unresolved-initial-message copy. #170436, #170352 and #170477 had retargeted it at the outbox band and then at band absence. A jsdom regression beside the recovery test covers the offline band without the e2e shard.
After a cloud startup failure, a disconnected chat no longer said that the initial message was unresolved or what to do next. 7661ce5 (#170052) dropped the composer band's pending-send fallback so that connection recovery is explained only on the busy Send button. That is right while connected, where Send is held. Offline, Send stays enabled so later turns can enter the outbox, so the unresolved-initial-turn guidance had no remaining surface. Restore the band for the disconnected state only. Connection-recovery notices stay on Send, as #170052 intended. The cloud startup failure e2e assertion returns to the unresolved-initial-message copy. #170436, #170352 and #170477 had retargeted it at the outbox band and then at band absence. A jsdom regression beside the recovery test covers the offline band without the e2e shard.
…aw#170515) After a cloud startup failure, a disconnected chat no longer said that the initial message was unresolved or what to do next. 90ecb48 (openclaw#170052) dropped the composer band's pending-send fallback so that connection recovery is explained only on the busy Send button. That is right while connected, where Send is held. Offline, Send stays enabled so later turns can enter the outbox, so the unresolved-initial-turn guidance had no remaining surface. Restore the band for the disconnected state only. Connection-recovery notices stay on Send, as openclaw#170052 intended. The cloud startup failure e2e assertion returns to the unresolved-initial-message copy. openclaw#170436, openclaw#170352 and openclaw#170477 had retargeted it at the outbox band and then at band absence. A jsdom regression beside the recovery test covers the offline band without the e2e shard.
What Problem This Solves
Fixes: while the Gateway is restarting, the chat composer shows the same offline state twice. A blue
2 in this conversation’s outbox.band sits above queued messages that each already showWaiting for reconnect.User Impact
User impact: offline queued messages show one clear state per message, without a duplicate count band above them. Queueing, delivery after reconnect, and per-message states are unchanged.
Why This Change Was Made
Every outbox item already shows its own state: queued rows carry a reconnect badge (#146466 reduced that to one state per row), and inline queued sends show their status in the thread. The composer band (
chat.composer.offlineQueuedHint, added in #112649) repeated that state, so this removes the band, itsqueuedOutboxCountprop, and the English string. Translation memory and locale metadata are left to the post-merge locale refresh.The composer status band is still used for disabled reasons and composer errors, and its
infotone still has producers throughdisabledReasonTone.Evidence
Offline, with two messages queued (mock Gateway, synthetic data):
pnpm test ui/src/pages/chat/chat-composer.test.ts ui/src/pages/chat/chat-composer-queue.test.ts --maxWorkers=1: 36 passed (~38 s wall). The composer test now asserts there is no band while offline and that both queued rows carry the reconnect badge.ui/src/e2e/chat-composer-outbox.e2e.test.ts(ui-e2e bundled, ~19 s): passed; it asserts no status band after an offline queue.pnpm tsgo:ui, oxlint and oxfmt are clean on the touched files.Release note: the chat composer no longer repeats the offline outbox count above queued messages.