Skip to content

Skip AgentTips with unresolved keybinding placeholders#9509

Open
MaggieShan wants to merge 4 commits into
masterfrom
oz-agent/agent-tips-voice-keybinding-fix
Open

Skip AgentTips with unresolved keybinding placeholders#9509
MaggieShan wants to merge 4 commits into
masterfrom
oz-agent/agent-tips-voice-keybinding-fix

Conversation

@MaggieShan
Copy link
Copy Markdown
Contributor

@MaggieShan MaggieShan commented Apr 29, 2026

Description

Testing

Verified locally with only the voice tip - when setting is disabled or when keybinding is not available, the tip is not applicable/not shown
https://www.loom.com/share/dcfcf6a0b8b24be8aea1ca24dd27ddc9

Agent Mode

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

@cla-bot cla-bot Bot added the cla-signed label Apr 29, 2026
@MaggieShan MaggieShan force-pushed the oz-agent/agent-tips-voice-keybinding-fix branch from 4347e79 to d65e69e Compare May 12, 2026 14:56
@MaggieShan MaggieShan marked this pull request as ready for review May 12, 2026 18:35
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 12, 2026

@MaggieShan

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

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 filters AgentTips whose descriptions include unresolved keybinding placeholders and adds singleton revalidation hooks for settings, team, and keybinding changes.

Concerns

  • The new revalidation hooks update only the singleton tip model, but the visible agent status bar stores a cloned current_tip; this can leave an already-rendered keybinding tip visible with a raw <keybinding> placeholder after the binding is cleared.

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/lib.rs
@MaggieShan MaggieShan force-pushed the oz-agent/agent-tips-voice-keybinding-fix branch 4 times, most recently from f3b109a to 1562345 Compare May 13, 2026 18:22
MaggieShan and others added 4 commits May 13, 2026 15:11
When a tip's description contains '<keybinding>' but no keybinding is
configured (e.g. voice mode tip with voice_input_toggle_key == None),
is_tip_applicable now returns false so the raw '<keybinding>' string
is never shown to users.

This specifically fixes the voice tip: it is added to the tips pool
whenever voice input is enabled, but the keybinding is only set after
the user first interacts with voice. Previously the tip could be
selected and displayed with the literal text '<keybinding>'. Now it is
filtered out at refresh time until a toggle key is configured.

The same guard also protects all other keybinding-based tips in case
a user has unbound the corresponding action.

Co-Authored-By: Oz <oz-agent@warp.dev>
@MaggieShan MaggieShan force-pushed the oz-agent/agent-tips-voice-keybinding-fix branch from 1562345 to 72f9cb7 Compare May 13, 2026 19:11
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.

1 participant