Skip to content

chore(ui): retain evidence for descendant PR hydration failures - #181989

Merged
steipete merged 2 commits into
mainfrom
solid2/hf-descendant-pr-flake
Oct 23, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/hf-descendant-pr-flake

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The real-Gateway case “shows three persisted descendant PRs while keeping the parent branch unpublished” intermittently times out with durable receipts present but no hydrated PR metadata. The failures on #181477 and #181868 did not identify which awaited stage stopped progressing.

Related: #181868.

User Impact

No UI behavior, timeout, assertion, subscription policy, or publication policy changes. The next failure of this one case carries the missing diagnostic evidence in its existing, CI-uploaded failure.public.json report.

Why This Change Was Made

Reuse Node diagnostic channels and the existing E2E failure-facts recorder. An opt-in Gateway channel marks loader import, checkout context, branch cache/facts, receipt and metadata reads, snapshot publication, and broadcast. The test combines these with the existing Gateway RPC and Git-operation channels and its already-decoded WebSocket messages.

Each stage retains at most 128 Gateway events and 128 subscription frames, with timestamps and eviction counts. The failure-only browser read records the session owner's PR summaries and roster membership for the parent and three descendants, plus badge/card/link projection state. Session keys become indexes (0 = parent, 1–3 = descendants); PR numbers are restricted to the fixture. Titles, URLs, paths, credentials, frame IDs, and payload content are omitted.

Passing runs add only bounded in-memory observations: no extra RPC, browser probe, wait, log, or artifact write. Production channels are inactive without subscribers. The watched-state type moves beside its base type to keep the subscription module within its existing line cap.

Evidence

Proof Result
Prior investigation, unchanged main 0/160 local/Linux failures; no root cause claimed
Temporary forced failure through the actual case CI-uploaded public failure report contained 86 Gateway events, 12 subscription frames, four UI session records, and three rendered descendant links; temporary failure removed
Unchanged real-Gateway case, both initial and restarted stages PASS; public-attachment correction was subsequently proved with the forced failure
pnpm tsgo:ui and pnpm tsgo:core PASS
Madge import-cycle guard PASS (0 cycles); CI caught a type-only diagnostic dependency cycle, removed before landing
UI E2E typecheck leaf PASS
Scoped oxlint and formatting; git diff --check PASS
Independent autoreview, P0–P2 No actionable findings

Production LOC: 1,937 → 1,989 (+52). Test/helper LOC: 1,670 → 1,915 (+245). No browser production source changed, so no startup bundle or visual change. The existing runtime/bundle preparation ran through the focused E2E command; no additional performance or visual suite was run.

This is evidence collection, not a flake fix. The next matching failure should distinguish a pending read from completed work that failed to reach the UI.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T22:40:50.353088Z 310e74c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: M labels Oct 23, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@steipete
steipete enabled auto-merge (squash) October 23, 2026 22:53
@steipete
steipete merged commit 951d373 into main Oct 23, 2026
131 of 133 checks passed
@steipete
steipete deleted the solid2/hf-descendant-pr-flake branch October 23, 2026 23:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…claw#181989)

* test(ui): capture descendant PR hydration failure evidence

* fix(gateway): keep session PR diagnostics dependency-free
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 ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant