Skip to content

test(ui): expect the offline composer band to stay absent - #170477

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-cloud-offline-band
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-cloud-offline-band

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem and repair

The cloud-startup recovery E2E still waits for the duplicate offline composer banner removed by 2f6d5bc (#170352). Its disconnect cases time out on a DOM element that the current UI deliberately does not render.

Match the existing sibling outbox test by asserting that the band is absent. Keep all draft, queue, attachment, session, retry, and subsequent-send assertions. This changes one expectation in one existing test file; it changes no product behavior, timers, or fixture setup. No visual product change or additional test is introduced.

Evidence

CI run 38328667182/job115073433345 executed the two failing disconnect cases on PR #170349. Current main contains the same stale positive-band expectation and the same composer that removed the band. This is shared-source evidence; that execution is PR CI, not a current scheduled-main reproduction. The earlier #170436 test repair passed 8/8 before this later banner removal.

Basic formatting, lint, and diff validation pass. Isolated Codex review through P2 is scoped-clean with no actionable findings. This PR’s CI run 38330636342 executes the changed whole browser file: 8/8 pass in 27.634 s in job 115079636539, using merge 14b2d597 of head 8c18c68 into 64d15a8. Architecture job 115079636835 reports zero runtime import cycles and zero Madge cycles. The complete selected CI run is green: 18 successful jobs, 28 skipped, no failures. Typecheck, lint, source guards, architecture, all three selected UI jobs, and baseline ratchets passed. No local test timing or baseline execution is claimed; these are CI timings. Whole-tree Knip and database checks are not selected for this single assertion-only change.

T1, statement/request counts, database dialect, SDK, and published-driver update proof are not applicable to this test-only change; no database or runtime code is touched. There are no removed authority checks or accepted data-loss edge cases. Production LOC: 0. Test LOC: +1/-3.

@clawsweeper

clawsweeper Bot commented Oct 13, 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 13, 2026
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the cloud-startup disconnect test to expect the offline composer band to be absent.

Example: Cloud startup fails, the Gateway disconnects, and “later ordinary turn” is queued.

  • Before: The test waits for “1 in this conversation’s outbox.” in a deliberately removed banner.
  • After: The test expects no banner and continues checking reconnect, retry, attachments, and subsequent delivery.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The narrow correction is source-supported and has no actionable findings; execution of the changed test has not yet completed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only correction changes no shipped behavior; linked screenshots support the existing UI contract but do not establish a passing run of the changed test.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: An obsolete browser assertion blocks verification of otherwise intended cloud-startup recovery behavior.
Reason: The correction follows the recorded owner decision to remove duplicate offline notices and preserves the recovery scenario’s substantive assertions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it corrects an obsolete browser-test expectation to match intentional current-main behavior, without weakening recovery or delivery checks.

Priority: P3
Reviewed head: 8c18c6893ddcb76d669ab63f9924c6981992c743

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Current-head execution of the changed cloud-startup browser file is still pending; the earlier linked failure’s detailed logs could not be inspected.
Agent review details

How this fits together

The Control UI browser suite supplies Gateway responses and connection changes to the real chat UI, then checks rendered recovery states and outgoing requests.

flowchart TD
  A[Browser test scenario] --> B[Mock Gateway]
  B --> C[Chat recovery owner]
  C --> D[Composer and queued messages]
  D --> E[DOM assertions]
  C --> F[Retry and delivery assertions]
Loading

Technical review

Best possible solution:

Retain the corrected absence assertion and all existing recovery checks.

Do we have a high-confidence way to reproduce the issue?

Current-main source shows the deterministic mismatch: the disconnect test waits for an aggregate offline notice whose rendering branch was intentionally removed; no current-main execution was performed.

Is this the best way to solve the issue?

Changing the existing expectation follows the sibling browser contract and preserves the stronger checks for retained input, attachment custody, retry, and delivery ordering.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 648d4ab8f315.

Provenance checked

  • Cloud-startup offline composer expectation changes intended behavior with a stated reason (bac3252: The earlier test repair followed the then-current aggregate outbox notice; the subsequent intentional banner removal made that expectation obsolete.)
  • Cloud browser fixture lifecycle keeps the original intent (276537b: Use suite.withPage to retain original failures and await context cleanup; this PR leaves that ownership and cleanup unchanged.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Precisely scoped introduced change: The introduced diff replaces only the positive offline-band assertion with a zero-count assertion; draft, attachment, queue, retry, and delivery assertions remain. (ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts:281, 8c18c6893ddc)
  • Current-main mismatch: Fetched main still expects the outbox-count banner in the cloud-startup test, while its composer renderer produces bands only for disabled reasons or composer errors. (ui/src/pages/chat/components/chat-composer-view.tsx:234, 648d4ab8f315)
  • Intentional removal and sibling contract: fix(ui): drop duplicate offline outbox band from composer #170352 intentionally removed duplicate offline counts and changed the sibling outbox browser test to expect no band. (ui/src/e2e/chat-composer-outbox.e2e.test.ts:37, 2f6d5bc66604)
  • Inspected linked screenshots: The linked removal PR’s downloaded before/after images show two retained “Waiting for reconnect” badges with the aggregate band removed; these establish intended presentation, not execution of this PR’s cloud-startup test. (2f6d5bc66604)
  • CI classification: The failed context check requests the literal “What Problem This Solves” body section; its annotations identify paperwork rather than a code defect. Current-head browser CI remains in progress. (8c18c6893ddc)
  • Policy and inspection limits: Read root and UI AGENTS.md, the complete changed test, testing guidance, and feature history; maintainer notes are absent. History traversal reached the documented creation-object limit, and linked job logs redirected to a blocked Azure host. No target code or second reviewer was run, and the checkout remains clean. (ui/AGENTS.md, 8c18c6893ddc)

Likely related people:

  • Vincent Koc: Raw commit 276537b adds ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts:292 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 276537bf8dbb; files: ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts)

PR surface

Tests -2. Total -2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 3 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 3 -2

Labels

Label changes:

  • add P3: This is a focused correction to a stale browser-test expectation with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused correction to a stale browser-test expectation with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 12, 2026, 9:11 PM ET / October 13, 2026, 01:11 UTC.

@steipete
steipete merged commit 5e1752d into main Oct 13, 2026
84 of 86 checks passed
@steipete
steipete deleted the dbasync/redmain-cloud-offline-band branch October 13, 2026 01:15
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

1 participant