You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): model picker provider tooltips open at once when moving between icons - #45097
In the model picker, moving the pointer from one provider icon to the next waits the full hover delay again for every icon, even while a tooltip is already showing.
Steps (no sign-in needed):
Open any thread and click the model picker in the composer.
Hover the Favorites star in the left column until its tooltip shows.
Move straight down onto the first provider icon.
The tooltip closes and the next one waits the full delay again. Everywhere else in the app it opens at once.
Cause
#42671 removed the picker's TooltipProvider from ModelPickerContent while unifying tooltip timings and left a bare fragment. The tooltips in ModelPickerSidebar.tsx are plain Base UI tooltips (a disabled item wraps its button in a span, so they cannot use the shared tooltip), and Base UI only shares its warm window between tooltips under a provider. Without one, each icon starts cold. #34145 fixed the same gap for the subagent previews by adding a TooltipProvider.
Change
ModelPickerContent returns a TooltipProvider with the default delay instead of the fragment, so #42671's single timing stays and only the grouping comes back. Four lines added, two removed, in one file.
Scope
Small fix of an obvious bug, steps reproduce it, so it needs no issue.
Verification
New case in ProviderModelPicker.browser.test.tsx, "opens the next provider's tooltip at once while moving down the picker sidebar": it opens the picker with Codex and Claude, hovers Codex for 600 ms, hovers Claude, advances 1 ms and expects Claude's trigger to be open.
FAIL ProviderModelPicker.browser.test.tsx > opens the next provider's tooltip at once while moving down the picker sidebar
Error: expect(element).toHaveAttribute("data-popup-open")
Received: null
Tests 1 failed | 5 passed (6)
With the fix, ProviderModelPicker.browser.test.tsx and ProviderModelPicker.composition.browser.test.tsx:
Test Files 2 passed (2)
Tests 8 passed (8)
vp run check:changed: format, lint, knip, typecheck (2 packages), test (1 file) and React Compiler (1 file) all pass.
Not verified: I did not hover the icons by hand in the running app; the browser test uses fake timers to stand in for the pointer moves.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Reviewing files that changed from the base of the PR and between 6cb21f9 and 3c4d450.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The model picker content now renders inside a TooltipProvider. A browser test checks tooltip timing when hovering over two provider options in sequence.
Changes: Model picker tooltip timing
Layer / File(s)
Summary
Shared tooltip provider and hover timing test apps/web/src/components/chat/ModelPickerContent.tsx, apps/web/src/components/chat/ProviderModelPicker.browser.test.tsx
ModelPickerContent wraps its content in TooltipProvider. The browser test checks that the first tooltip opens after 600 ms and the next tooltip opens after 1 ms.
pingdotgg/t3code#34144 — The issue describes adjacent subagent previews repeating the initial hover delay without a shared Tooltip.Provider. This PR adds a provider for the model picker, so it addresses a similar tooltip-timing objective in a different interface.
Suggested reviewers:juliusmarminge
Merge Risk: Minimal · previous review 6cb21
This restores shared tooltip timing in the model picker so moving between provider icons opens the next tooltip immediately. The change is small and easy to revert, and no merge-blocking risk is evident.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the fix and its scope: model picker provider tooltips opening at once when the pointer moves between icons. The raw summary confirms that ModelPickerContent now wraps its content in To…
Description check
The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives a clear cause and reproduction steps. The Change section explains the …
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.
Full details: Title check
Explanation
The title names the fix and its scope: model picker provider tooltips opening at once when the pointer moves between icons. The raw summary confirms that ModelPickerContent now wraps its content in TooltipProvider, which matches the title. The title is specific and uses a conventional commit prefix. It is slightly long at 79 characters, but it is clear and on topic.
Full details: Description check
Explanation
The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives a clear cause and reproduction steps. The Change section explains the four-line fix in one file. The Scope section explains why no issue is linked. The Verification section gives a new test, a failing run before the fix, passing runs after it, and an explicit note on what was not verified by hand. The model and harness are named at the end, as the template asks. The description does not include a screenshot or recording, but the change is a timing fix in a browser test. The template asks for a recording when timing is needed to demonstrate the change, so the author could strengthen the evidence by adding one. This gap is minor, so the check passes.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Real web app, Chromium, 1280×800, light theme, fresh replay-seeded state on both commits. Open the composer model picker, hover Favorites until its tooltip opens, then move directly through Codex → Claude → Replay (dev). Capture each adjacent hover at 150 ms.
The initial hover delay remains on both commits. Every adjacent tooltip is absent at 150 ms on base and visible at 150 ms on head. The scenario fails on base and passes on head.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
In the model picker, moving the pointer from one provider icon to the next waits the full hover delay again for every icon, even while a tooltip is already showing.
Steps (no sign-in needed):
Cause
#42671 removed the picker's
TooltipProviderfromModelPickerContentwhile unifying tooltip timings and left a bare fragment. The tooltips inModelPickerSidebar.tsxare plain Base UI tooltips (a disabled item wraps its button in a span, so they cannot use the shared tooltip), and Base UI only shares its warm window between tooltips under a provider. Without one, each icon starts cold. #34145 fixed the same gap for the subagent previews by adding aTooltipProvider.Change
ModelPickerContentreturns aTooltipProviderwith the default delay instead of the fragment, so #42671's single timing stays and only the grouping comes back. Four lines added, two removed, in one file.Scope
Small fix of an obvious bug, steps reproduce it, so it needs no issue.
Verification
New case in
ProviderModelPicker.browser.test.tsx, "opens the next provider's tooltip at once while moving down the picker sidebar": it opens the picker with Codex and Claude, hovers Codex for 600 ms, hovers Claude, advances 1 ms and expects Claude's trigger to be open.Test commit alone, fails on main d3b3505:
With the fix,
ProviderModelPicker.browser.test.tsxandProviderModelPicker.composition.browser.test.tsx:vp run check:changed: format, lint, knip, typecheck (2 packages), test (1 file) and React Compiler (1 file) all pass.Not verified: I did not hover the icons by hand in the running app; the browser test uses fake timers to stand in for the pointer moves.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.