mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 21:05:51 +00:00
runWorkflow:脚本结束时 hook.phase 不会触发最后一个 phase 的 phase_done, UI 左栏会永远显示 running。三路径(completed/killed/failed)统一在 run_done 之前补发 emitTerminalPhaseDone。 WorkflowsPanel:抽 isRunTerminatedTransition 纯函数判定 running → terminal, 面板 useEffect 检测到转换后自动退出聚焦。 Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>