Skip to content

fix(ui): drop duplicate offline outbox band from composer - #170352

Merged
steipete merged 3 commits into
mainfrom
steipete/composer-outbox-band
Oct 13, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/composer-outbox-band

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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 show Waiting 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, its queuedOutboxCount prop, 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 info tone still has producers through disabledReasonTone.

Evidence

Offline, with two messages queued (mock Gateway, synthetic data):

Before After
before after
  • 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.
  • Codex autoreview: scoped-clean.

Release note: the chat composer no longer repeats the offline outbox count above queued messages.

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

clawsweeper Bot commented Oct 12, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Removes the composer’s aggregate offline outbox notice while preserving individual queued-message statuses.

Example: The Gateway disconnects with two messages queued.

  • Before: A blue “2 in this conversation’s outbox.” band appears above two “Waiting for reconnect” badges.
  • After: Both reconnect badges remain without the extra band.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The visual result is directly demonstrated and the production change is sound; stale documentation and redundant unit coverage keep it below A.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the Control UI composer with a mock Gateway and two synthetic offline queued messages, showing the aggregate band removed while both reconnect badges remain.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: During reconnect, users see an aggregate notice above messages that already show their individual reconnect states.
Reason: The feature-history owner explicitly chooses this simplification, with individual delivery states preserved.

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
Reviewed head: 582816a66b282f0eae6e8f66c1edc908d995e117

Before merge

  • Update the reconnect guide to remove the composer count (P3) - With offline messages queued, this PR removes the composer summary, but the guide still says that summary appears alongside queued messages and that the composer count covers its conversation. Update lines 207–208 and 217 to describe the retained per-message statuses. This previously reported mismatch remains unchanged at the reviewed head.

Findings

  • [P3] Update the reconnect guide to remove the composer count — docs/web/control-ui/offline-and-reconnect.md:207-208

Tests

  • Low-value test ui/src/pages/chat/chat-composer.test.ts: Remove the redundant updated offline-render case: omitting queuedOutboxCount makes its no-band assertion pass on the old renderer too, while existing queue coverage and the bundled browser scenario cover its remaining assertions.
  • Missing end-to-end proof: The bundled browser scenario is reported passing, but failure of its revised assertion on the original implementation is not demonstrated.
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P3] Update the reconnect guide to remove the composer count — docs/web/control-ui/offline-and-reconnect.md:207-208
    With offline messages queued, this PR removes the composer summary, but the guide still says that summary appears alongside queued messages and that the composer count covers its conversation. Update lines 207–208 and 217 to describe the retained per-message statuses. This previously reported mismatch remains unchanged at the reviewed head.
    Confidence: 1

Overall correctness: patch is correct
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 335d12304b01.

Provenance checked

  • Aggregate composer outbox notice and its internal plumbing changes intended behavior with a stated reason (85fda04: Expose the visible conversation’s queued count alongside session and navigation indicators; later lifecycle work retained an outbox-specific notice.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • git diff --check
  • pnpm docs:check-links
  • pnpm test ui/src/pages/chat/chat-composer.test.ts ui/src/pages/chat/chat-composer-queue.test.ts --maxWorkers=1

What I checked:

PR surface

Source -10, Tests -15. Total -25 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 1 11 -10
Tests 2 9 24 -15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 10 35 -25

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a low-risk presentation simplification with a documentation correction; message delivery and recovery behavior remain intact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the redundant offline-render unit case and retain the bundled browser assertion as the primary regression.

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 execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-12T22:59:37.040Z sha 8700987 :: needs changes before merge. :: [P2] Leave generated locales to the locale-refresh workflow
  • reviewed 2026-10-12T23:17:16.858Z sha ec83c2e :: needs changes before merge. :: [P3] Update the reconnect guide to remove the composer count

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
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 12, 2026
@steipete
steipete merged commit 2f6d5bc into main Oct 13, 2026
78 checks passed
@steipete
steipete deleted the steipete/composer-outbox-band branch October 13, 2026 00:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 13, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…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.
steipete added a commit that referenced this pull request Oct 13, 2026
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.
steipete added a commit that referenced this pull request Oct 13, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant