Repository navigation
fix(ci): stabilize Control UI sidebar reconnect check - #121609
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready evidence for head Root cause: the mock Gateway's method-global Focused proof:
Production LOC: +0/-0. Tests and test support: +31/-22 (net +9). Known proof gap: ClawSweeper has only published its in-progress placeholder so far, with no findings or Rank-up moves available to address. Per the repository policy, the queued publisher is not a merge blocker; the native landing flow should still stop if an actionable review appears before merge. |
|
Merged via squash.
|
Related: #121438
Related: #120732
What Problem This Solves
Resolves a flaky Control UI browser check where the sidebar reconnect scenario could time out waiting for the refreshed session label even though the production sidebar had correctly applied its canonical reconnect response. The failure reproduced on
mainlocally and in the first attempt of CI run https://github.com/openclaw/openclaw/actions/runs/31363964382.Why This Change Was Made
The mock Gateway's one-shot deferral selected only by RPC method. During reconnect, the replacement connection legitimately sends two different
sessions.listrequests: a searched, archived route-resolution lookup and the canonical sidebar roster hydration. Whichever request arrived first consumed the method-global deferral, so the test could resolve the route lookup with the refreshed fixture while the sidebar correctly retained the canonical stale fixture.The test harness now allows a deferred request to match a subset of request parameters. The sidebar scenario targets the canonical roster request through
includeLastMessage: true; existing method-only deferrals keep their FIFO behavior. This completes the earlier #120732 stabilization, which isolated the replacement socket generation but could not distinguish request owners inside that generation.No production behavior, timeout, retry, or assertion strength changed. Production LOC: +0/-0. Tests and test support: +31/-22 (net +9).
User Impact
No user-visible behavior changes. Maintainers get deterministic Control UI reconnect coverage that exercises the real route-resolution and canonical roster requests without allowing one to impersonate the other.
Evidence
Reconnect refreshedassertion.limit: 50,includeDerivedTitles: true,includeLastMessage: true;limit: 20,archived: "all", searched by the session key;limit: 50,includeDerivedTitles: true,includeLastMessage: true.resolves a pending catalog target after reconnect without clearing the draft): passed and does not share this mechanism.oxfmt --check, type-awareoxlint, andgit diff --check: passed.baseRef: "mainmain"failure in the same historical CI shard is an unrelated input-control race in the terminal-start scenario and is intentionally not changed here.