GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(web): composer notice stack test no longer flakes on a leftover pointer by tris203 · Pull Request #22511 · pingdotgg/t3code

Conversation

@tris203

@tris203 tris203 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Problem

ComposerBannerStack.browser.test.tsx › "keeps only the usage limit attached while an active goal waits in the collapsible stack" fails intermittently on CI (issue #22324, item 1; also run 39495988192 on #22399). The stack expands on pointer enter. The browser mouse is shared page state, and the test never moves it. If the mouse is already where the stack renders, scrolling or rendering fires a pointer enter, so the stack expands by itself. That hides the "Show other notices" peek (invisible, aria-hidden). The click then times out ("intercepts pointer events" from the container, which by then has the expanded-only z-50 class, then "not stable", then "not visible"), or the earlier not.toBeVisible() check on the goal fails, as #22324 reports.

Change

Right after rendering, the test hovers the attached "Usage limit reached" banner, which sits outside the stack container. The pointer now starts in a known spot off the stack. If the stack had already expanded, the pointer leave collapses it again. The component is unchanged: with a real mouse, hovering before a click always expands the stack, which is the intended behavior.

Scope and approval

A test-only fix for a flaky test, so it falls under the small, focused fix exception. Reported in #22324 (item 1). That issue covers several unrelated flakes; this PR only fixes this one.

Verification

  • Reproduced the failure with a scratch test that parks the mouse on a 12px strip where the stack renders, then renders the stack and clicks the peek. Without the fix it fails every time: the peek is already aria-hidden, so the click times out. With the fix it passes.
  • vp test run --project browser src/components/chat/ComposerBannerStack.browser.test.tsx: 3/3 pass, run repeatedly, including alongside the scratch test.
  • Not reproduced: a separate test file leaving the mouse there first, which is the likely CI path. I couldn't control file order locally.

Investigated and written by Claude Opus 5.5 in Claude Code (T3 Code).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tris203
test(web): park the pointer before clicking the composer notice stack…
714cc37
… peek

The stack expands on pointer enter. When the shared browser mouse was left
where the stack renders, it expanded and hid the peek before the test could
click it.
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 20, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 20, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 714cc37

Macroscope's review found this PR approvable — This is a three-line, test-only flake fix confined to ignored paths, with no production runtime or product-default impact. The additional customer restrictions do not apply.

Notes:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc7ea9b1-710c-4132-8746-3de88319684d
📥 Commits

Reviewing files that changed from the base of the PR and between ca140c4 and 714cc37.

📒 Files selected for processing: 1
  • apps/web/src/components/chat/ComposerBannerStack.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.

📝 Walkthrough

The browser test now hovers the usage-limit banner before checking collapsed-stack visibility and attachment behavior.

Changes: Composer banner stack test

Layer / File(s) Summary
Set pointer state before assertions
apps/web/src/components/chat/ComposerBannerStack.browser.test.tsx
The test hovers the usage-limit banner before checking the collapsed stack and attachment behavior.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to 714cc

This test-only adjustment is mergeable with normal checks.

Architecture risk: 🔵 Low · up to 714cc

The change affects 1 system.

Changed systems: apps/web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — apps/web (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in apps/web/src/components/chat/ComposerBannerStack.browser.test.tsx: The test now hovers the usage-limit banner before checking collapsed-stack visibility and attachment behavior.
Pre-merge checks: Passed 4
Check name Status Explanation
Description check Passed The description covers the intermittent failure, the cause, the focused test-only change, scope justification, issue references, verification steps, observed results, and limitations.
Title check Passed The title clearly identifies a web test fix for flakiness caused by leftover pointer state. It is concise and uses the repository’s conventional commit format.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Oct 20, 2026

Copy link
Copy Markdown
Member

Note

Grok responding on behalf of Julius.

Thanks for tracking this down! #22508 just landed on main with the same fix for this test: it hovers the "Usage limit reached" banner first so a leftover pointer can't expand the stack, and it opens the peek with the keyboard. That makes this PR redundant, so I'm closing it as superseded. The other flakes in #22324 are still open if you want to pick one up.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 20, 2026
This was referenced Oct 20, 2026
test(web): timeline restore test no longer flakes on a late live-follow save #22528
Closed
test(server): stopped-queue steering test no longer races queue promotion #22529
Merged
test(web): favicon picker offscreen preview no longer loses its published URL #22530
Closed
test(server): launcher PATH lookup test no longer drops the Windows drive letter #22534
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

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.

2 participants

@tris203 @juliusmarminge
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.