Repository navigation
fix(ci): stabilize Control UI stream and recovery tests - #138776
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 10:03 PM ET / September 5, 2026, 02:03 UTC. ClawSweeper reviewWhat this changesThe PR delivers simulated chat updates through separate browser message tasks instead of nested timers and checks the complete rendered final snapshot. Merge readiness✅ Ready for maintainer review Keep open with no blocking findings. This is a useful, narrowly scoped correction to an existing CI guard; the reviewed main and release still contain the timer-paced fixture, and the patch preserves the regression thresholds. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI browser tests feed simulated Gateway messages into the real chat state and rendering code. Their runtime budgets detect excessive rendering while checking that streamed text reaches the transcript. flowchart TD
A[Mock chat snapshots] --> B[Separate browser message tasks]
B --> C[Halfway animation frame pause]
C --> D[Chat state and render queue]
D --> E[Rendered transcript]
D --> F[Render budget assertions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep burst scheduling in the test producer, preserving the production render queue, existing budgets, and complete final-snapshot assertion. Do we have a high-confidence way to reproduce the issue? Yes at source level: spreading 240 snapshots over more than 180 render frames can exceed the fixed ceiling despite correct coalescing, matching the supplied cadence diagnostic. Tests were not executed here, and the original CI failure's exact timing cause remains unestablished. Is this the best way to solve the issue? Yes—the patch corrects the producer's burst assumption rather than raising thresholds or modifying the correct rendering owner, while preserving separate event tasks and strengthening final-text verification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f9b00a558261. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
4d39c83 to
958db6f
Compare
|
@clawsweeper re-review The final diff also updates the startup recovery geometry assertion while preserving its existing bounds and default timeout. Both changed files have clean independent reviews, and the combined nine-case browser run passes on this head. Dashboard resolution is supplied by the already-merged #138769. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready verification for The startup evidence limitation remains explicit: CI observed the immediate assertion fail, while local original and passive runs passed. The frozen repo E2E workflow did not upload browser failure captures, so the precise bad bounds cannot be recovered. The fix awaits the same constraints with the existing polling timeout. Both mutation controls still reject broken stream coalescing. |
|
Merged via squash.
|
* refs/remotes/origin/main: fix(codex): reject stale control commands after session rollover (openclaw#138820) fix: normalize small Responses output budgets (openclaw#138828) test(voice-call): reuse presence guards in notify helpers (openclaw#138246) refactor(logbook): type reads and bound observation queries (openclaw#138816) fix(workboard): stop services before retiring SQLite stores (openclaw#138810) fix(ci): stabilize Control UI stream and recovery tests (openclaw#138776) fix(cli): share recorded gateway state path inspection (openclaw#138822) refactor(anthropic): replace Agent SDK with direct CLI transport (openclaw#138707) fix(agents): preserve per-turn settings and diagnostics (openclaw#138695)
What Problem This Solves
Two Control UI browser fixtures failed during release verification. The stream budget fixture used nested zero-delay timers whose browser clamping could spread its supposed burst across too many frames. The startup recovery fixture inspected responsive geometry immediately after changing the viewport, before the application was required to have finished its resize update.
Why This Change Was Made
Deliver each of the 240 stream snapshots in its own MessageChannel task, with one deliberate animation-frame boundary. Keep the 180-update ceiling, two-update floor, 90% frame-scheduling ratio, and complete final-text assertion. Both direct per-message updates and a separate rAF callback for every message still fail the gate.
Await the existing mobile recovery bounds with the suite's default
expect.polltimeout. The bounds and recovery interactions are unchanged. CI observed the immediate assertion fail; local original and passive-diagnostic runs passed, so this change does not claim to have captured CI's exact bad geometry. It follows the asynchronous viewport/resize/render contract used by the responsive sibling tests.User Impact
Release verification checks browser behavior without these timer-cadence and immediate-layout assumptions. Production behavior and rendering policies are unchanged.
Evidence
241 > 180; removing pending-frame dedupe and its stale-callback fence failed at240 > 180.6832f3b61ebce90d52921b592e9d23dd83802e06). Validation includes its canonical fixture repair and exercises gallery navigation as sibling coverage.Both complete scoped changed gates passed, including formatting, UI catalog verification, the UI E2E type graph, dead-export checks, and targeted lint. Both changed fixture files remain byte-identical after rebasing onto the canonical gallery-fix commit.
The final combined browser run passed all 9 cases across three files on head
958db6f3628da43176433647c843325296671f4f, based on6832f3b61ebce90d52921b592e9d23dd83802e06(210.79 seconds). This includes the five streaming budget cases, three startup recovery paths, and canonical dashboard gallery scenario. CI must be green before merge.Independent Codex reviews of the stream and startup fixtures are scoped-clean through P2.
Production: +0/-0. Tests: +32/-22. No baseline, inventory, timeout, or performance budget was relaxed. Original coalescing coverage and negative-proof rationale come from #106353 and #128154; the generated locale PR #138680 exposed the stream-budget failure.