Skip to content

fix(ci): target sidebar reconnect roster response - #124430

Merged
steipete merged 3 commits into
mainfrom
fix/autoqa-sidebar-reconnect-e2e-v2
Aug 16, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/autoqa-sidebar-reconnect-e2e-v2

Conversation

@steipete

@steipete steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #124371
Related: #121609

What Problem This Solves

Resolves a problem where the Control UI sidebar reconnect E2E could fail on current main while 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.list deferral 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 main is green.

Evidence

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 16, 2026
@steipete
steipete marked this pull request as ready for review August 16, 2026 05:14
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 16, 2026, 1:55 AM ET / 05:55 UTC.

ClawSweeper review

What this changes

The PR updates a Control UI sidebar reconnect E2E test to defer the enriched session-roster request and assert the reconnect request shape.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: 1792b7caae424e20493ebe20b901ebe17c5963c8

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The targeted matcher is sound, but the added incidental assertions need removal before this is a durable CI repair.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR changes no user-visible runtime behavior; focused E2E evidence in the PR body is supplemental validation.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR changes no user-visible runtime behavior; focused E2E evidence in the PR body is supplemental validation.
Evidence reviewed 6 items Canonical roster owner: The sidebar refresh explicitly requests derived titles and the last message, so matching includeLastMessage: true identifies its enriched roster request.
Mock matching contract: The fixture consumes the first deferred method whose supplied parameter subset matches the request; a method-only deferral can therefore be claimed by another sessions.list request.
Distinct route lookup: Route resolution sends an archived, searched session lookup with derived titles but no includeLastMessage, supporting the narrower matcher.
Findings 1 actionable finding [P2] Remove incidental reconnect request identity assertions
Security None None.

How this fits together

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

Before merge

  • Remove incidental reconnect request identity assertions (P2) - The parameter-scoped deferral and final sidebar assertions already prove that the enriched roster response owns recovery. The exact full request object and uniqueness check duplicate lower-level request-contract coverage and will fail on behavior-preserving query or request-ID refactors; this concern is newly introduced after the prior review cycle.
  • Resolve merge risk (P1) - Merging the exact parameter-object and reconnect-wide request-ID assertions can make CI fail after harmless route-query or request-ID implementation changes, despite unchanged sidebar recovery behavior.
  • Complete next step (P2) - The remaining repair is narrow, but the protected maintainer item should remain under maintainer handling until the new P2 finding is addressed.

Findings

  • [P2] Remove incidental reconnect request identity assertions — ui/src/e2e/session-management.sidebar.e2e.test.ts:594-615
Agent review details

Security

None.

PR surface

Tests +28. Total +28 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 31 3 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 31 3 +28

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +31/-3 All changed lines are browser E2E assertions, so the risk is CI-test coupling rather than a runtime behavior change.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-management.sidebar.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Keep only sidebar-recovery evidence (recommended)
    Remove the exact sessions.list payload equality and reconnect-wide request-ID uniqueness checks, retaining the matched deferral and recovered sidebar assertions.

Technical review

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

  • [P2] Remove incidental reconnect request identity assertions — ui/src/e2e/session-management.sidebar.e2e.test.ts:594-615
    The parameter-scoped deferral and final sidebar assertions already prove that the enriched roster response owns recovery. The exact full request object and uniqueness check duplicate lower-level request-contract coverage and will fail on behavior-preserving query or request-ID refactors; this concern is newly introduced after the prior review cycle.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e49527031942.

Labels

Label justifications:

  • P2: The PR repairs a flaky Control UI reconnect test but does not change user-facing runtime behavior.
  • merge-risk: 🚨 automation: Overly exact browser-test assertions can reject valid scheduling or query-shape refactors in CI.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored, test-only PR changes no user-visible runtime behavior; focused E2E evidence in the PR body is supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the current sidebar roster refresh and the prior canonical reconnect-test merge. (role: recent Control UI session owner; confidence: high; commits: e68f3d8ad190, ebd03db15687; files: ui/src/components/session-data-controller-events.ts, ui/src/e2e/session-management.sidebar.e2e.test.ts)

Rank-up moves

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

  • Remove the exact request-payload and request-ID assertions, then rerun the focused sidebar E2E path.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-16T05:20:56.585Z sha 82015dbd6e5e3ac9464662d3803214695251d2a7 :: needs changes before merge. :: [P2] Remove incidental reconnect request ordering assertions

@steipete
steipete force-pushed the fix/autoqa-sidebar-reconnect-e2e-v2 branch from 82015db to 1792b7c Compare August 16, 2026 05:48
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Aug 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for head 716b88b970d47ee86bfe362d76fa7594aed5dcd6:

Known proof gap: one late path-scoped check-changed run observed unrelated global assertion-ratchet drift while main advanced. An earlier broader changed gate passed, final targeted checks passed, and exact-head CI is green.

@steipete
steipete merged commit fa57fe5 into main Aug 16, 2026
101 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the fix/autoqa-sidebar-reconnect-e2e-v2 branch August 16, 2026 06:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
* test(ui): target selected reconnect roster request

* test(ui): decouple reconnect request scheduling

* test(ui): keep reconnect proof outcome-focused
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 maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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