fix(chatui): command tooltip auto-closes with panel & enhances dark mode visibility#8606
fix(chatui): command tooltip auto-closes with panel & enhances dark mode visibility#8606elecvoid243 wants to merge 13 commits into
Conversation
… into cmd_suggestion
…isibility in dark mode
There was a problem hiding this comment.
Code Review
This pull request updates the CommandSuggestion.vue component to hide the tooltip when the suggestion panel is closed and improves the readability of command descriptions in dark mode by adjusting their text color. A review comment suggests extending the watcher to also monitor changes in the commands list, which prevents "ghost" tooltips from remaining visible when items are dynamically filtered out of the DOM.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
watchonprops.visibledirectly mutatestooltip.visible, introducing two sources of truth for visibility; consider derivingtooltip.visiblefromprops.visible(or a single reactive state) to avoid potential inconsistencies. - The updated dark-mode color
#e0e0e0is hard-coded; if you have a design token or CSS variable system for theming, it would be more maintainable to reference that instead of a literal color value.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `watch` on `props.visible` directly mutates `tooltip.visible`, introducing two sources of truth for visibility; consider deriving `tooltip.visible` from `props.visible` (or a single reactive state) to avoid potential inconsistencies.
- The updated dark-mode color `#e0e0e0` is hard-coded; if you have a design token or CSS variable system for theming, it would be more maintainable to reference that instead of a literal color value.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Modifications / 改动点
修复命令提示气泡在候选框关闭后仍然驻留的问题,并让暗色模式下的指令描述字体更醒目
Screenshots or Test Results / 运行截图或测试结果
Checklist / 检查清单
😊 If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
/ 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。
👀 My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
/ 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”。
🤓 I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in
requirements.txtandpyproject.toml./ 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到
requirements.txt和pyproject.toml文件相应位置。😮 My changes do not introduce malicious code.
/ 我的更改没有引入恶意代码。
Summary by Sourcery
Fix chat command suggestion tooltip behavior and improve dark mode readability.
Bug Fixes:
Enhancements: