Repository navigation
Conversation
Let users cancel individual delegates or all delegates in a session through the existing TaskStop cancellation path without a model round trip. Preserve parent execution, partial output, and pending cancellation state. Persist matching terminal Task snapshots when an indexed running result already exists, so explicit cancellation survives transcript reload. Refs vastsa#1417
Preserve the indexed streaming-state fast path alongside terminal Task snapshot updates. Resolve IPC imports and retain both sets of E2E scenarios without rewriting the shared branch history.
Collaborator
|
涉及ui的pr,需要ui截图,可让 agent 对关键操作进行截图补充回复 |
Contributor
Author
Collaborator
|
ok, 检查完成后我会合并 |
Collaborator
|
您好,关于界面优化,我想提出一个建议:能否在子代理侧边栏底部输入框的右下角,增设一枚与主代理暂停按钮样式相同的暂停按钮?并新增模型选择下拉框且置于不可选固定现在子代理的模型与强度,为将来实现侧边栏的附属对话功能预留发展空间。 |
Contributor
Author
我这边会实现一版本,在这个pr下面回复对应的截图 |
Place the subagent detail stop action beside the read-only composer and show the effective model and thinking level as disabled controls. Keep the existing card actions unchanged while reserving the composer area for future sidebar interactions.
Reuse the main composer chip and circular stop control in the read-only subagent footer. Update the panel contract and Electron fixture flow to cover the new control location.
Show the detail panel with the composer-matched model chip and stop control for the pull request review.
Contributor
Author
Collaborator
Contributor
Author
Keep the detail-panel stop control aligned with the read-only model chip and update the Electron E2E selectors for the compact tooltip button.
Contributor
Author
|
This branch has not been deployed
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.





功能说明
运行时已有
TaskStop,可以由主模型调用来停止子智能体。本次为用户增加直接点击的入口:在子智能体卡片或详情面板点击「停止」,或在分组标题处点击「停止全部」。按钮与TaskStop共用同一套停止逻辑,无需再请求主模型调用工具。例如 A、B 同时运行时,停止 A,B 和主智能体继续工作;A 已输出的内容仍可查看。
关联 #1417。此 PR 属于
feat;仓库当前限制外部贡献以fix/perf合入,本次提交供维护者评估,不代表已获得例外许可。具体实现
medium等思考强度保持完整。TaskStop内的取消代码抽成共享方法,桌面通过 IPC 调用当前会话的运行时。没有新增模型请求,也不向模型历史伪造工具调用。沿用原有的五秒等待上限;尚未确认结束的任务保持「正在停止…」,避免误报已停止和重复提交。验证结果
测试提交:
17459704c;基于上游 main1f5302335810ac722c7bf97d4f21f1961d59b524。创建 PR 后已核对,GitHub 合并候选与本地测试提交的代码树一致。CI 状态以 PR 检查结果为准。git diff --check通过。scripts/e2e-subagent-stop.mjs:使用真实 Electron Main、sidecar、Host,配合隔离配置和本地流式模拟服务,验证详情面板停止、兄弟与父级任务不受影响、停止全部、部分输出保留、终态落盘、空列表拒绝、deepseek-flash medium完整显示及按钮右下角位置。scripts/e2e-subagent-parent-error.mjs:直接停止、父级报错、abort、TaskStop 四种场景通过。自动化桌面测试未覆盖原生/远程会话控制,也不声称完成了穷尽的键盘操作和浅色主题验证。