Skip to content

test(ui-kit): wait for the deferred tail in the frame-refusals case (#4250) - #4251

Merged
schlessera merged 1 commit into
mainfrom
fix/4250-connection-refusals-deferred-tail
Nov 18, 2026
Merged

schlessera merged 1 commit into
mainfrom
fix/4250-connection-refusals-deferred-tail

Conversation

@schlessera

@schlessera schlessera commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

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:

Fix: the line now polls with expect.poll for the appended text, as code-fences-plain does. The product behaviour is unchanged and as designed: the partial reply stays on screen throughout.

Proof

  • Failing first: with the unfixed test on this base, connection-refusals.visual.tsx fails 4/4 locally with the main run's assertion, "expected … to contain 'The fleet is still crossing the harbo…'".
  • Fixed: 4/4 pass in the visual project.
  • Same bug class: turn-failure-observations.visual.tsx also sends deltas. Its assertions after a delta read the store, not the DOM. The other main jobs passed at c2870f8.
  • check:pr passes.

Collisions

bun scripts/collisions.ts --json --pr 4251 at 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

…4250)

#4240 re-parses the growing last markdown block at deferred priority, so
the delta appended inside flushSync shows on the next commit. The
frame-refusals visual case read the reply straight after it; it now
polls for the appended text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera schlessera added this to the 0.45.0 milestone Nov 18, 2026
@uploads-sh

uploads-sh Bot commented Nov 18, 2026

Copy link
Copy Markdown

No uploads on this PR yet

This PR changes UI files (packages/ui-kit/tests/visual/connection-refusals.visual.tsx). Screenshots help reviewers see what changed.

  • From the CLI: uploads put before.png after.png --pr 4251
  • From an agent: ask it to attach screenshots with uploads.sh
  • By hand: drag images into the PR description and they're imported automatically
Tips for agents

Label each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one put per shot:

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 after

No CLI? With the Uploads MCP, call sign_upload_url for files on disk (or put) with repo, pr: 4251 and the same screen, state and caption fields.

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 uploads list --pr 4251. More in the github-screenshots skill or the agent docs.

Workspace admins can turn this comment off in Settings → GitHub · docs

@schlessera

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed 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": []
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant