Repository navigation
Description
What happened
After I approved a Plan, the Desktop execution panel remained at 正在执行计划 0/9 步, with every step marked 未开始, while the agent worked and after it delivered its final report. The stored execution never reached completion; it was later recorded as interrupted.
I expected the count and step markers to reflect reported progress, and the panel to close once the execution completed.
Evidence
One approved nine-step Plan on the packaged nightly 0.2.0-dev.31.20260913, Windows 11, Desktop, using deepseek-v4.1-flash:
- The local runtime store records
plan_submitted→plan_approved(all steps pending) →plan_execution_interrupted, with noplan_progress_updatedorplan_execution_completed. - That Session contains one
SubmitPlancall and zeroupdate_plancalls. - The execution Turn exposed 12 tools directly.
update_planandcancel_planwere deferred behind tool search.
In a separate dev test, restoring the execution request's steps and progress instructions caused the model to write progress and complete the execution. However, the panel still only caught up at the end. This exposed a second, independent notification gap.
Diagnosis
- Missing execution context. The Host's approval transition sent only
Execute the approved plan execution <id>., without the step IDs and statuses required byupdate_planor an instruction to use it. perf(runtime): remove generic turn tail injection #4278 removed the former per-Turn execution context (renderPlanExecutionPrompt). The remaining Plan-mode prompt applies during planning, not the approved execution. - Missing tool-driven refresh notification. The Desktop listens for
plan-mode:changedand also refreshes on Session events includingplan_submitted,completeandabort. The Plan-change notification was published by user-controlled Plan operations, but not byupdate_plan/cancel_planwrites. Consequently, intermediate stored progress could remain invisible until the terminal refresh.
A local fix restores durable execution context and publishes the existing Plan-domain invalidation after successful execution-tool writes. I plan to submit it as a Draft PR for review; I am open to a different mechanism if maintainers prefer one.
Environment
- Maka
0.2.0-dev.31.20260913, packaged nightly installer - Windows 11 (10.0.26200, x64), Desktop
- Model:
deepseek-v4.1-flash
中文说明
发生了什么
我批准一个九步计划后,Maka 已经执行任务并给出最终报告,但桌面端底部计划面板一直显示 0/9,每一步都是“未开始”。运行时库中也没有计划进度更新或正常完成的记录;这次执行后来被记录为“中断”。
我期望执行过程中能看到进度变化,计划完成后计划面板正常关闭。
证据
环境为打包版 nightly 0.2.0-dev.31.20260913,Windows 11 桌面端,模型 deepseek-v4.1-flash:
- 本地运行时库记录为
plan_submitted→plan_approved(所有步骤 pending)→plan_execution_interrupted,没有plan_progress_updated,也没有plan_execution_completed。 - 该会话只有 1 次
SubmitPlan调用,update_plan为 0 次。 - 执行轮直接可见的工具为 12 个;
update_plan和cancel_plan位于延迟工具清单中,需要先搜索才会激活。
在另一轮开发版测试中,补回执行请求里的步骤与更新指引后,模型确实写入了进度并正常完成了计划;但界面仍然只在最后才刷新。这说明还存在第二个独立的通知缺口。
原因
- 执行请求缺少必要信息。 批准计划后,Host 只发送
Execute the approved plan execution <id>.,没有提供更新进度所需的步骤编号、状态和操作指引。perf(runtime): remove generic turn tail injection #4278 移除了原先的执行上下文(renderPlanExecutionPrompt);其余的计划模式提示词只在规划阶段注入,不覆盖批准后的执行阶段。 - 工具写入进度后没有通知界面。 桌面端会监听
plan-mode:changed,也会在plan_submitted、complete、abort等会话事件时重新读取状态。但计划变更通知此前由用户操作路径发布,update_plan和cancel_plan的写入不会发布它,因此中间进度可能一直不可见,直到任务结束才刷新。
本地已经修复这两处:恢复持久化的执行上下文,并在执行工具成功写入后发布已有的计划变更通知。计划以草稿 PR 提交审阅;如果维护者倾向其他实现方式,可以调整。
Activity