GeezerVison is showing github.com — test(web): the open-in-editor announcement test no longer hears another test by Entrpi · Pull Request #32804 · pingdotgg/t3code
Conversation
Entrpi
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
On loaded CI runners, "speaks only after the shortcut opened the editor, from the picker or the fallback" in OpenInPicker.browser.test.tsx fails with expected 'Opened in VS Code' to be ''. It fails on main (run 42434003216) and on PRs. Check requires Test Web, so the flake blocks merges.
The test reads the live regions that announce adds to the page once. The test before it, "opens the link from the fallback when the picker is not mounted", announces "Opened in VS Code" on a real 250 ms timer, and it ends before that timer fires. The message stays queued into the next test. If that test reaches its first check more than 250 ms later, the message has already been spoken, and it looks like the refused press announced it.
Change
The test replaces announce with a spy, as showThreadUndoNotice.test.ts does, and checks what each press announces. announce.browser.test.ts covers the regions and their timing, so this test no longer needs fake timers.
#31676 also edits this test: it changes runAllTimers to advanceTimersByTime(250) for its new clear timer. That hunk isn't needed with this change. Whichever PR merges second keeps this version.
Scope and approval
A test-only fix for a flaky required check, with no product change. There's no prior issue. It qualifies as a small fix of an obvious bug: the test reads page-wide state that the test before it can leave behind, and the failure reproduces on main with a 300 ms delay.
Verification
- Reproduced on
main: a 300 ms wait at the start of the test, standing in for a slow runner, gives the CI error. With the same wait, the test passes when run alone. With this change, it passes either way.
- Mutations: the test fails, at that path's refused press, if either the picker or the fallback announces after a refused open. So both "not called" checks run after the open has settled.
- Stability: five consecutive runs of the file pass.
vp run check:changed passes.
Claude Opus 5.5 via Claude Code, in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…er test
The announcement test read the live regions that `announce` creates once
per page. The remote editor links test just before it announces "Opened
in VS Code" on a real 250 ms timer and ends before that timer fires. When
the next test reached its first check more than 250 ms later, as on a
loaded CI runner, the leftover message was already spoken and the refused
press seemed to announce it. It failed Test Web on main and on PRs.
The test now replaces `announce` with a spy, as showThreadUndoNotice.test.ts
does, and checks what each press announces. announce.browser.test.ts
covers the regions and their timing, so this test no longer needs fake
timers.
User story: When I open a PR, Test Web fails only for a real problem, so I
don't have to ask a maintainer to rerun a flaky check.
Approvability
Verdict: Approved at 127b8c7
Macroscope's review found this PR approvable — This change isolates the open-in-editor announcement test from announcements left by other tests. Its scope is test-only, with no product defaults or diagnostic suppressions changed.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The browser test now mocks announce and checks that failed open attempts do not announce. Successful attempts announce "Opened in VS Code" once, both with the picker mounted and with the fallback.
Changes: Open in picker announcement test
| Layer / File(s) |
Summary |
Announcement test setup and assertions apps/web/src/components/chat/OpenInPicker.browser.test.tsx |
The test resets a mock of announce for each test. It removes fake-timer and live-region text checks and verifies that failed attempts do not announce, while successful attempts announce "Opened in VS Code" exactly once with the picker mounted and with the fallback. |
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Suggested reviewers: t3dotgg, juliusmarminge
Merge Risk: Minimal · up to 127b8
-
The test-only change has no identified merge-blocking risk.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the changed area (web test for the open-in-editor announcement) and the fix (the test no longer picks up announcements from a preceding test). It is specific and matches the changeset,… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The description supplies a clear Problem section (flaky required CI check with the exact failure text and the cross-test cause), a Change section (replace announce with a spy, drop fake timers), and a… |
Full details: Title check
-
Explanation
The title names the changed area (web test for the open-in-editor announcement) and the fix (the test no longer picks up announcements from a preceding test). It is specific and matches the changeset, which replaces live-region reads with an announce spy in OpenInPicker.browser.test.tsx. It follows the conventional commit form the template asks for.
Full details: Description check
-
Explanation
The description supplies a clear Problem section (flaky required CI check with the exact failure text and the cross-test cause), a Change section (replace announce with a spy, drop fake timers), and a Scope and approval section that explains why no prior issue is needed under the small-obvious-bug exemption. Verification lists a reproduction on main with a 300 ms delay, mutation checks, five stable runs, and the check:changed command. It notes the related #31676 overlap. The template's UI screenshot requirement does not apply because this is a test-only change. The author names the model and harness at the end, which the template asks for. The Scope section states the author's reasoning, but it is not backed by a maintainer-triaged issue or approval comment, so the exemption claim is for reviewers to judge.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 71c2d3a and 127b8c7.
Files selected for processing: 1
-
apps/web/src/components/chat/OpenInPicker.browser.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @Entrpi for tracking down and reproducing this flake. #33139 fixed the same cross-test announcement on main in 920ffcdd04 by preventing the preceding test from scheduling it, so this is covered.
|
Entrpi reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|