feat(desktop): 输入框 Shift+Tab 循环切换 Agent 模式#103
Merged
Conversation
在 handleComposerKeyDown 中拦截 Shift+Tab,调用 cycleAgentMode 按 Agent→Plan→Ask→Debug→Agent 顺序循环切换。 复用 handleComposerAgentModeChange 处理 chip 增删与设置持久化。 斜杠/文件建议打开时由 handleComposerSuggestionKeyDown 优先消费, IME 组合态时不触发。
N123999
added a commit
that referenced
this pull request
Jul 1, 2026
feat(desktop): 输入框 Shift+Tab 循环切换 Agent 模式
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.
Summary
handleComposerAgentModeChange处理 chip 增删(Plan / Ask / Debug 各显示对应 Chip,Agent 模式无 Chip)及设置持久化handleComposerSuggestionKeyDown优先消费事件,不触发模式切换cycleAgentMode(current)工具函数于apps/desktop/src/lib/agent-mode.ts,统一管理循环顺序Test plan