fix: 支持 Alt+Enter 转向当前任务,保留 Enter 排队跟进 - #272
Open
zszz3 wants to merge 1 commit into
Open
Conversation
zszz3
force-pushed
the
feat/issue-164-steering-publish-20260912
branch
from
September 12, 2026 13:21
83e3516 to
60a4d23
Compare
zszz3
marked this pull request as ready for review
September 13, 2026 07:27
Keep Enter as a queued follow-up and route Alt+Enter to the active turn through native steering. Preserve accepted input and streaming reply order across Stop and recovery, and show platform-specific shortcut labels.
zszz3
force-pushed
the
feat/issue-164-steering-publish-20260912
branch
from
September 13, 2026 07:34
60a4d23 to
121335d
Compare
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.
运行中补充指令时,Composer 原本只能将输入排队到下一轮。本改动保留 Enter/普通发送作为 follow-up,增加 Alt+Enter(macOS 为 ⌥/Option+Enter)向当前轮提交 steering;当前回复和已启动的工具完成后,下一次模型请求收到补充输入。
直接复用现有 Composer、store slice、Agent IPC 和持久化模块,调用 pi-agent-core 原生
Agent.steer。请求绑定expectedTurnId,复用当前模型与附件检查;过期请求恢复草稿,Stop 保留已接收输入,流式回复在持久化后保持原有顺序。已同步 IPC、运行时、存储、交互规范、ADR 和 E2E 场景。验证:
24f40b9a解决冲突。outbox 直接复用主分支已有的快照确认保护;保留双方的 ADR、决策日志和中英文 E2E 场景。pnpm build:js、桌面 TypeScript、lint、架构检查、Rust 格式检查通过;77 对中英文规格检查通过。121335d5,保持单个提交,作者与提交者均为zszz3。83e35160的 macOS 安装包已由提交者在本机试用确认;本次基线更新后的桌面交互尚未重新手工验收。E2E: NOT RUN
npm run test:e2e、npm run test:e2e:plan、npm run test:e2e:subagents,以及E2E-AGENT-alt-enter-steers-active-turn桌面场景。Closes #164