Skip to content

Fix hoverable state when there are multiple 'Open Skill' buttons.#9437

Merged
szgupta merged 1 commit intomasterfrom
suraj/fix-open-skill-button-mouse-state-handle
May 4, 2026
Merged

Fix hoverable state when there are multiple 'Open Skill' buttons.#9437
szgupta merged 1 commit intomasterfrom
suraj/fix-open-skill-button-mouse-state-handle

Conversation

@szgupta
Copy link
Copy Markdown
Member

@szgupta szgupta commented Apr 29, 2026

Description

When there are multiple 'Open Skill' buttons per AI block (e.g. parallel tool call for the read-skill tool), they share the same mouse state handle and thus have weird hover and click interactions.

This PR fixes that by using one mouse state handle per button.

Testing

loom.com/share/9274bf288a8345a3836ee66019b7e225?from_recorder=1&focus_title=1

Server API dependencies

  • Is this change necessary to make the client compatible with a desired server API breaking change?
  • Does this change rely on a new server API?
    • If so, is the use of this API restricted to client channels that rely on the staging server (e.g. WarpDev)?
  • Is this change enabling the use of a server API on client channels that rely on the production server (e.g. WarpStable)?
    • If so, has the new server API been stable on production for at least one server release cycle? See here for more details.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Changelog Entries for Stable

CHANGELOG-NEW-FEATURE: {{text goes here...}}
CHANGELOG-IMPROVEMENT: {{text goes here...}}
CHANGELOG-BUG-FIX: Fixed a bug where multiple 'open skill' buttons shared hover state.
CHANGELOG-BUG-FIX: {{more text goes here...}}
CHANGELOG-IMAGE: {{GCP-hosted URL goes here...}}
CHANGELOG-OZ: {{text goes here...}}

@cla-bot cla-bot Bot added the cla-signed label Apr 29, 2026
@szgupta szgupta requested a review from peicodes April 29, 2026 15:39
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented Apr 29, 2026

@szgupta

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and posted feedback on this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR changes the AI block state handles for ReadSkill and ReadFiles/SearchCodebase open-skill buttons from one shared mouse handle per block to per-action handles keyed by AIAgentActionId, and resets all relevant handles when opening code in Warp.

Concerns

  • No blocking correctness concerns found in the changed lines.
  • Supplemental security pass: no actionable security findings in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@szgupta szgupta merged commit 2f3b0a9 into master May 4, 2026
34 checks passed
@szgupta szgupta deleted the suraj/fix-open-skill-button-mouse-state-handle branch May 4, 2026 16:46
wolverine2k pushed a commit to wolverine2k/warp that referenced this pull request May 5, 2026
…rpdotdev#9437)

When there are multiple 'Open Skill' buttons per AI block (e.g. parallel
tool call for the read-skill tool), they share the same mouse state
handle and thus have weird hover and click interactions.

This PR fixes that by using one mouse state handle per button.

loom.com/share/9274bf288a8345a3836ee66019b7e225?from_recorder=1&focus_title=1

<!-- You may remove this section if your PR does not have any server
dependencies. -->
- [ ] Is this change necessary to make the client compatible with a
desired [server API breaking
change](https://www.notion.so/warpdev/How-to-safely-introduce-server-API-breaking-changes-0aa805ff5d5d41fd8834f3c95caba0b4?pvs=4#d55ecf8aea3449949d3c33b0e67f6800)?
- [ ] Does this change rely on a [new server
API](https://www.notion.so/warpdev/How-to-add-a-new-full-stack-feature-8412cede405a4ec194b32bdd4b951035?pvs=4#04da1e6a493542d68b3e998c7d339640)?
- [ ] If so, is the use of this API restricted to client channels that
rely on the staging server (e.g. WarpDev)?
- [ ] Is this change enabling the use of a server API on client channels
that rely on the production server (e.g. WarpStable)?
- [ ] If so, has the new server API been stable on production for at
least one server release cycle? See
[here](https://www.notion.so/warpdev/How-to-add-a-new-full-stack-feature-8412cede405a4ec194b32bdd4b951035?pvs=4#73b202f939834b97ab1fbdf7fc82cd53)
for more details.

- [ ] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

<!--
The entries below will be used when constructing a soft-copy of the
stable release changelog. Leave blank or remove the lines if no entry in
the stable changelog is needed. Entries should be on the same line,
without the `{{` `}}` brackets. You can use multiple lines, even of the
same type. The valid suffixes are:

* NEW-FEATURE: for new, relatively sizable features. Features listed
here will likely have docs / social media posts / marketing launches
associated with them, so use sparingly.
* IMPROVEMENT: for new functionality of existing features.
* BUG-FIX: for fixes related to known bugs or regressions.
* IMAGE: the image specified by the URL (hosted on GCP) will be added to
Dev & Preview releases. For Stable releases, see the pinned doc in the
* OZ: Oz-related updates. Use `CHANGELOG-OZ`. At most 4 Oz updates are
shown in-app per release.
-->

CHANGELOG-NEW-FEATURE: {{text goes here...}}
CHANGELOG-IMPROVEMENT: {{text goes here...}}
CHANGELOG-BUG-FIX: Fixed a bug where multiple 'open skill' buttons
shared hover state.
CHANGELOG-BUG-FIX: {{more text goes here...}}
CHANGELOG-IMAGE: {{GCP-hosted URL goes here...}}
CHANGELOG-OZ: {{text goes here...}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants