fix: 修复 Agent 探索/监督/自动模式互相切换后,弹窗立即消失的问题#35
Open
Afeng01 wants to merge 1 commit intoErlichLiu:mainfrom
Open
Conversation
点击权限模式按钮后,tooltip 保持显示直到用户鼠标移开, 而不是闪现后立即消失。使用 keepOpenRef + 100ms 保护期 防止点击瞬间的误关闭,改善用户体验。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


改进内容
点击 Agent 权限模式按钮(探索/监督/自动)后,tooltip 保持显示直到用户鼠标移开,而不是闪现后立即消失。
实现方案
open+onOpenChange)keepOpenRef标记点击状态用户体验
改进前:点击按钮 → tooltip 闪现 → 立即消失
改进后:点击按钮 → tooltip 显示 → 用户可查看说明 → 鼠标移开时关闭
变更文件
apps/electron/src/renderer/components/agent/PermissionModeSelector.tsx