Repository navigation
test(ui): expect the offline composer band to stay absent - #170477
Conversation
|
🦞👀 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 maintainer review before merge. What this changesUpdates 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2. Total -2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 Reviewed October 12, 2026, 9:11 PM ET / October 13, 2026, 01:11 UTC. |
…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.
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.