Repository navigation
test(ui-kit): wait for the deferred tail in the frame-refusals case (#4250) - #4251
Conversation
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 4251 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4251 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
Independent reviewReviewed head 98fb260 against base c2870f8. Reviewer: agent. No findings. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 4251,
"head": "98fb26073c1d3237ec2da809d635c9cd92c57c5a",
"base": "c2870f8ce44bcf68ea7866b5fd149c741a135e74",
"reviewer": "agent",
"outcome": "no-findings",
"findings": []
} |
Refs #4250 (red-main incident; this is its declared fix). Follows #2588 / #4240.
What this does
Main run 44213143475 at c2870f8 (#4240) failed
browser (3):packages/ui-kit/tests/visual/connection-refusals.visual.tsx, all four "frame refusals preserve the live reply" cases. They failed at line 67, where the reply text did not yet contain " Still sailing.".Cause:
useDeferredValue).flushSynccommits urgently with the previous tail text, and the appended text shows on the next commit.textContentstraight afterflushSync. perf(ui-react): parse a streaming answer block by block (#2588) #4240 changed two browser tests that read this way,code-fences-plainandrenderer-dispatch, but this ui-kit visual test was missed.Fix: the line now polls with
expect.pollfor the appended text, ascode-fences-plaindoes. The product behaviour is unchanged and as designed: the partial reply stays on screen throughout.Proof
connection-refusals.visual.tsxfails 4/4 locally with the main run's assertion, "expected … to contain 'The fleet is still crossing the harbo…'".visualproject.turn-failure-observations.visual.tsxalso sends deltas. Its assertions after a delta read the store, not the DOM. The other main jobs passed at c2870f8.check:prpasses.Collisions
bun scripts/collisions.ts --json --pr 4251at head 98fb260: closure reports with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4234, #4238, #4248.{"version":1,"kind":"brain-check-pr-receipt","head":"98fb26073c1d3237ec2da809d635c9cd92c57c5a","base":"origin/main","mode":"focused","startedAt":"2026-11-18T01:31:57.184Z","finishedAt":"2026-11-18T01:32:23.611Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13258.987728},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":109.63751599999887},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":80.56268199999977},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.487574999999197},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":12940.190709999999}]}🤖 Generated with Claude Code