Repository navigation
fix(ci): target sidebar reconnect roster response - #124430
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 16, 2026, 1:55 AM ET / 05:55 UTC. ClawSweeper reviewWhat this changesThe PR updates a Control UI sidebar reconnect E2E test to defer the enriched session-roster request and assert the reconnect request shape. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open: parameter-scoped deferral fixes the wrong-request race, but the new exact request-object and all-request-ID assertions reintroduce CI coupling unrelated to sidebar recovery. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI reloads its sidebar session roster after the Gateway reconnects. Its browser E2E fixture holds a mock Gateway response so the test can verify that the selected session remains active when the roster arrives. flowchart LR
Browser[Control UI sidebar] --> Reconnect[Gateway reconnect]
Reconnect --> Requests[Session list requests]
Requests --> Matcher[Mock request matcher]
Matcher --> Deferred[Deferred roster response]
Deferred --> Sidebar[Recovered selected session]
Sidebar --> E2E[Browser E2E assertion]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +28. Total +28 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the parameter-scoped deferral and visible sidebar recovery checks, while removing the duplicate full request-shape and request-ID assertions already covered at lower owner boundaries. Do we have a high-confidence way to reproduce the issue? Yes—current source shows that a method-only deferred response may be consumed by either the route lookup or the enriched sidebar roster request; the PR body also records the observed CI failure. Is this the best way to solve the issue? No—the parameter-scoped deferral is the right repair, but the full request-object and request-ID assertions duplicate lower-level contracts and are not needed to prove sidebar recovery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e49527031942. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
82015db to
1792b7c
Compare
|
Land-ready proof for head
Known proof gap: one late path-scoped |
|
Merged via squash.
|
* test(ui): target selected reconnect roster request * test(ui): decouple reconnect request scheduling * test(ui): keep reconnect proof outcome-focused
Related: #124371
Related: #121609
What Problem This Solves
Resolves a problem where the Control UI sidebar reconnect E2E could fail on current
mainwhile waiting for a recovered selected-session label. The failure blocks otherwise verified PRs, including #124371, even though production correctly retains the selected session and one observer across reconnect and route changes.Why This Change Was Made
The mock Gateway's generic one-shot
sessions.listdeferral could be consumed by an archived route-resolution lookup instead of the canonical reconnect roster hydration. The recovered payload would then belong to an obsolete route request while the sidebar legitimately received the fixture's original label.The test now matches the canonical request through
includeLastMessage: true, waits until that qualifying request is observed, and then judges the visible recovered label, active-row count, selected route, and single observer. It does not couple the sidebar outcome to route-cache scheduling, complete request payloads, or request IDs.The production session capability, observer lifecycle, roster reconcile, and sidebar renderer were inspected and need no change. Production LOC: +0/-0. Tests: +7/-3. AI-assisted; I reviewed and understand the change.
User Impact
No user-visible behavior changes. Maintainers regain deterministic broken-main coverage for the selected-session reconnect path, allowing blocked verified PRs to resume once
mainis green.Evidence
Selected sessionremained after resolvingSelected session recovered).tbx_01m04jd4mzj83255s3w4mzcb8a, hydration run https://github.com/openclaw/openclaw/actions/runs/31930277748.pnpm check:changed: passed.pnpm build: passed.pnpm ui:i18n:verify: passed.oxfmt --checkandoxlint: passed.pnpm lint:ui:styles: passed.pnpm tsgo:test:ui: passed.pnpm check:import-cycles: 0 runtime value cycles.git diff --check: passed.