Skip to content

chore(ui): report off-frame stream budget failures - #149848

Merged
vincentkoc merged 2 commits into
mainfrom
fix/ui-stream-frame-diagnostics-20260916
Sep 16, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/ui-stream-frame-diagnostics-20260916

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

A Control UI stream-budget failure reported only a frame-scheduling ratio, leaving maintainers unable to identify which updates ran outside animation frames.

User Impact

No product behavior changes. Existing test failures now include bounded counters and sanitized caller observations. A passing diagnostic run does not explain or fix the historical ratio failure.

Why This Change Was Made

The existing probe records at most 12 off-frame updates with six classified caller frames each, fixed property labels, phase and callback counts. Exact emitted asset basenames retain source-map identity; unknown callers stay unknown. Raw stacks, paths, hosts, query strings and property values are excluded. Original forwarding, resets, test order, waits, frame split, 240 deltas and 0.9 threshold remain unchanged.

Evidence

  • Exact head f6c8b2b45234f7c3a50493a924a8f2f2ecbf809f: CI35070004540 attempt1 passed all38 executed checks, with16 intentional skips; required aggregate104713266850 passed.
  • Actual tested merge 9792559001ce46db16bc6dec9c8ddd26a670a962 / tree 632980bef4ff7f5feb56ea1669150f42a379b105: job104709436319 ran the original --shard4/6 order, passing all86 files/396 tests, including all six stream-budget cases. Core lint stripe2 and real-Gateway104709436258 also passed.
  • Canonical review cleared the diagnostic; independent review cleared the final Set-membership correction. Repository-pinned oxlint1.81 and oxfmt0.66 checks passed. Synthetic checks exercised forwarding, caps, privacy labels, resets and classifier equivalence; they are not browser failure-output evidence.
  • Production LOC +0/-0; tests +73/-3. The historical0.8 ratio's cause remains unproven, and the passing browser run does not demonstrate a failing diagnostic payload.

@vincentkoc vincentkoc self-assigned this Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 16, 2026 07:27
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 3:48 AM ET / 07:48 UTC (Revision 2).

ClawSweeper review

What this changes

Adds capped, sanitized caller samples and counters to Control UI streaming test failures without changing performance budgets or product behavior.

Merge readiness

✅ Ready for maintainer review

No actionable findings at the pinned head. The Set change preserves caller classification, and the diagnostics remain useful because current main lacks them. This maintainer-authored PR should remain open.

Priority: P3
Reviewed head: f6c8b2b45234f7c3a50493a924a8f2f2ecbf809f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused diagnostic improvement with bounded collection, preserved assertions, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor-proof gate is exempt for this MEMBER-authored diagnostic-only PR. Prior-head browser shard success supports validation, but does not demonstrate failure-output contents or explain the historical ratio; raw-log inspection was blocked by the artifact host.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor-proof gate is exempt for this MEMBER-authored diagnostic-only PR. Prior-head browser shard success supports validation, but does not demonstrate failure-output contents or explain the historical ratio; raw-log inspection was blocked by the artifact host.
Evidence reviewed 6 items Pinned patch and diagnostic safeguards: Read the complete changed test. Samples stop at 12 requests, retain at most six classified caller frames, exclude raw stacks and property values, reset with the existing counters, and forward the original requestUpdate call. The 240-delta scenario and 0.9 threshold remain unchanged.
Re-review continuity: GitHub's commit patch confirms that the only changes since the previously reviewed head are constructing a Set and replacing includes with has. The supplied previous review contains no findings or published rank-up moves. The local comparison encountered a missing object; the API supplied the complete successor patch.
Current-main necessity: Current main retains the original counters and ratio assertion without off-frame caller samples or the enriched failure message. No verified replacement was established; the attempted GitHub canonical search was unavailable.
Findings None None.
Security None None.

How this fits together

The Control UI browser tests send synthetic Gateway events through the chat renderer and measure animation-frame scheduling. This change enriches assertion failures so developers can identify off-frame page and pane updates.

flowchart LR
  A[Synthetic Gateway events] --> B[Chat renderer]
  B --> C[Page and pane update requests]
  C --> D{Inside animation frame?}
  D -->|Yes| E[Frame update counter]
  D -->|No| F[Capped sanitized caller samples]
  E --> G[Budget assertion and diagnostics]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +70. Total +70 across 1 file.

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

Review metrics

Metric Value Why it matters
Diagnostic collection bound 12 sampled updates; at most 72 caller frames The cap bounds stack collection and failure-output growth inside the performance probe.

Technical review

Best possible solution:

Keep diagnostics in the existing browser probe while preserving its scheduling, budgets, and bounded output.

Do we have a high-confidence way to reproduce the issue?

Not applicable to this diagnostic-only patch; the historical 0.8 ratio has not been reproduced or explained, and the PR does not claim to fix its cause.

Is this the best way to solve the issue?

Yes. Extending the existing probe preserves a single measurement owner, and Set membership is equivalent for these fixed string names.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 00ac1bc04e96.

Labels

Label justifications:

  • P3: This improves test-failure diagnostics without changing user behavior or performance thresholds.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor-proof gate is exempt for this MEMBER-authored diagnostic-only PR. Prior-head browser shard success supports validation, but does not demonstrate failure-output contents or explain the historical ratio; raw-log inspection was blocked by the artifact host.

Evidence

What I checked:

  • Pinned patch and diagnostic safeguards: Read the complete changed test. Samples stop at 12 requests, retain at most six classified caller frames, exclude raw stacks and property values, reset with the existing counters, and forward the original requestUpdate call. The 240-delta scenario and 0.9 threshold remain unchanged. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts:204, f6c8b2b45234)
  • Re-review continuity: GitHub's commit patch confirms that the only changes since the previously reviewed head are constructing a Set and replacing includes with has. The supplied previous review contains no findings or published rank-up moves. The local comparison encountered a missing object; the API supplied the complete successor patch. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts:191, f6c8b2b45234)
  • Current-main necessity: Current main retains the original counters and ratio assertion without off-frame caller samples or the enriched failure message. No verified replacement was established; the attempted GitHub canonical search was unavailable. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts:517, 00ac1bc04e96)
  • Latest-release comparison: The supplied latest release also has the original frame counters and ratio assertion, without offFrameUpdates. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts, 3a9d69db306c)
  • Hosted validation scope: GitHub confirms all seven browser E2E shard jobs succeeded for prior head b8c36b6 in https://github.com/openclaw/openclaw/actions/runs/35068604271, although the overall run was cancelled. The captured body reports 86 files/401 tests in the relevant shard, including six stream-budget cases. Raw job logs were blocked by the artifact-host allowlist, so those detailed counts were not independently verified. Successor lint and browser checks were still running. No tests were executed locally. (b8c36b628181)
  • Area history and routing: Current-main history shows repeated maintenance of this test by Peter Steinberger, including browser fixtures, stream stabilization, draft settling, and scroll-idle coverage. GitHub maps the recent scroll-coverage commit to steipete; its recorded parent and patch were inspected. Earlier feature-introduction history could not be completed because historical objects were unavailable. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts:704, 3a78c93d51f0)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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-09-16T07:33:06.239Z sha b8c36b6 :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head f6c8b2b. Successor only changes the fixed caller-name membership to Set.has to satisfy the observed lint rule; all diagnostic/scenario behavior is conserved. Prior-source original-order proof and pending successor CI are distinguished in the body.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit 0e7f372 into main Sep 16, 2026
87 of 89 checks passed
@vincentkoc
vincentkoc deleted the fix/ui-stream-frame-diagnostics-20260916 branch September 16, 2026 08:05
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
* chore(ui): report off-frame stream budget failures

* chore(ui): use a Set for caller-name membership
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant