Repository navigation
chore(ui): report off-frame stream budget failures - #149848
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 3:48 AM ET / 07:48 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +70. Total +70 across 1 file. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@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. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* chore(ui): report off-frame stream budget failures * chore(ui): use a Set for caller-name membership
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
f6c8b2b45234f7c3a50493a924a8f2f2ecbf809f: CI35070004540 attempt1 passed all38 executed checks, with16 intentional skips; required aggregate104713266850 passed.9792559001ce46db16bc6dec9c8ddd26a670a962/ tree632980bef4ff7f5feb56ea1669150f42a379b105: job104709436319 ran the original--shard4/6order, passing all86 files/396 tests, including all six stream-budget cases. Core lint stripe2 and real-Gateway104709436258 also passed.