Skip to content

fix(ui): Correct context chip styling during active CLI agent sessions #9968

Open
PratikRai0101 wants to merge 3 commits intowarpdotdev:masterfrom
PratikRai0101:fix/cli-agent-badge-styling
Open

fix(ui): Correct context chip styling during active CLI agent sessions #9968
PratikRai0101 wants to merge 3 commits intowarpdotdev:masterfrom
PratikRai0101:fix/cli-agent-badge-styling

Conversation

@PratikRai0101
Copy link
Copy Markdown

fix(ui): Correct context chip styling during active CLI agent sessions

Description

This PR addresses Bug 3 from issue #9958, where context chips (badges) in the CLI agent toolbar appeared interactive despite their click actions being suppressed.

The fix ensures that the UI correctly reflects the disabled state when a CLI agent session is active by:

  • Removing hover background effects and tooltips.
  • Reverting the cursor from a PointingHand to a default Arrow.
  • Applying internal_colors::neutral_6 to provide a muted, "disabled" visual style for the text and icons.
  • Explicitly skipping click handler registration for the affected chips.

These changes were applied to the Git Branch, Working Directory, and Node Version chips in app/src/context_chips/display_chip.rs.

Linked Issue

Addresses Bug 3 in #9958

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below.

Screenshots / Videos

N/A - Functional UI state and color logic update.

Testing

Verified the implementation by checking the rendering logic in display_chip.rs. Confirmed that is_cli_agent_active now gates all interactive UI properties (hover, cursor, click) and triggers the muted color palette.

Agent Mode

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

Changelog Entries for Stable

CHANGELOG-BUG-FIX: Fixed a UI mismatch where certain toolbar context chips (Git Branch, Working Directory, Node Version) appeared falsely clickable during active CLI agent sessions.

@cla-bot cla-bot Bot added the cla-signed label May 3, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 3, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 3, 2026

@PratikRai0101

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

You can view the conversation on Warp.

I completed the review and no human review was requested for 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

oz-for-oss[bot]
oz-for-oss Bot previously requested changes May 3, 2026
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 gates hover, cursor, color, and click affordances for the Git Branch, Working Directory, and Node Version context chips while a CLI agent session is active.

Concerns

  • The Node Version popup can remain mounted and actionable if it was already open when the CLI agent session becomes active, so users can still trigger version/install actions during the disabled state.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

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

Powered by Oz

Comment thread app/src/context_chips/display_chip.rs Outdated
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 3, 2026

@PratikRai0101

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for 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

oz-for-oss[bot]
oz-for-oss Bot previously requested changes May 3, 2026
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 mutes and disables click/hover behavior on Git Branch, Working Directory, and Node Version context chips while a CLI agent session is active. The change does not introduce security-sensitive behavior.

Concerns

  • Working Directory's agent-view disabled color path merges CLI-agent and ambient-agent cases, so CLI-agent chips in agent view do not use internal_colors::neutral_6 consistently with Git Branch and Node Version.
  • Git Branch and Working Directory still render their already-open menus when a CLI agent session becomes active; unlike Node Version's popup_open && !is_cli_agent_active gate, those overlays can remain visible/focusable even though chip actions are supposed to be suppressed.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

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

Powered by Oz

Comment thread app/src/context_chips/display_chip.rs Outdated
@PratikRai0101
Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 3, 2026

@PratikRai0101

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @warpdotdev/oss-maintainers.

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

Powered by Oz

@oz-for-oss oz-for-oss Bot dismissed stale reviews from themself May 3, 2026 11:24

Oz no longer requests changes for this pull request after the latest automated review.

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 updates the Git Branch, Working Directory, and Node Version context chips so CLI-agent-active sessions render them as non-interactive: muted color, no hover affordance/tooltips, no pointing cursor, and no menu/popup overlay while active.

Concerns

  • No blocking correctness or security concerns found in the annotated diff.

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

@oz-for-oss oz-for-oss Bot requested review from a team and peicodes and removed request for a team May 3, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant