Repository navigation
Close the promo hover when Try is clicked - #337839
Merged
Logan Ramos (lramos15) merged 1 commit intoSep 25, 2026
Merged
Logan Ramos (lramos15) merged 1 commit into
Logan Ramos (lramos15) merged 1 commit into
Conversation
Clicking Try in the closed-chat promo tooltip opened Chat, which withdrew the offer and re-rendered the still-pinned hover with the Copilot dashboard. Hide the hover before opening Chat, and add a regression test. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The targeted fix correctly addresses the synchronous hover update and is covered by a representative regression test.
Review effort: Balanced
Findings: None
What changed in this PR
Ensures the Copilot promotional hover closes before Chat opens, preventing it from changing into the usage dashboard.
Changes:
- Dismisses the pinned hover before executing the promo action.
- Adds an end-to-end browser regression test for the interaction.
| File | Description |
|---|---|
chatStatusPromo.ts |
Closes the promo hover before opening Chat. |
chatStatusPromo.test.ts |
Verifies the pinned offer disappears after clicking Try. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Logan Ramos (lramos15)
approved these changes
Sep 25, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Sep 25, 2026
roblourens
approved these changes
Sep 25, 2026
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Follow-up to #331588.
Problem
When a user clicks the Copilot status entry, the closed-chat promo tooltip is pinned. Clicking Try <model> in that tooltip leaves the hover open, and it switches to the Copilot usage dashboard.
Here's why: the Try command opens Chat synchronously. This withdraws the offer, so
ChatStatusBarEntryswaps the tooltip back to the dashboard. The status bar item then callshover.update(...), and the pinned managed hover re-renders in place with the new content, keeping its focus, before the hover action gets a chance to dispose it.Fix
In
ChatStatusPromo, the_chat.tryPromoModelcommand now callshoverService.hideHover(true)before it opens Chat.Testing
chatStatusPromo.test.ts: "Try closes the pinned offer instead of swapping in the dashboard". It drives a realStatusbarEntryItemandHoverService: it pins the offer, clicks Try, and asserts that no hover remains.Dashboard) and passes with it. All 37 tests in the file pass.npm run typecheck-clientis clean.Proof
Both clips use Code OSS with a GPT-5.5 sale fixture and the
copilotIconPopuptreatment, with Chat collapsed. The mouse moves to the status bar pip, clicks it to pin the offer, then clicks Try GPT-5.5.Before (
a6e06b5, main): Chat opens, but the pinned hover stays open and switches to the Copilot dashboard.try-before-hover-shows-dashboard.mp4
After (
1c1477e, this PR): the hover closes and Chat opens with the input focused.try-after-hover-closes.mp4