Skip to content

v1.7.3 — Paused-Lead Hot-Edit Preservation

Choose a tag to compare

@Wasabi2575 Wasabi2575 released this 30 Nov 06:10
· 4 commits to main since this release

中文更新说明

✨ 核心新特性

  • Lead 暂停态热改下游(Paused-Lead Hot-Edit):当工作流暂停在中间 Lead 节点(⏸ 待拍板)时,可以直接在侧边栏修改/增删下游节点、提示词、模型、连线、条件分支/回环或注释,或让 AI 调用 canvas_patch 原地调整下游——后端通过 reconcilePausedLeadState 自动保留已完成上游节点的缓存结果与等待拍板状态,恢复执行时立即按新下游拓扑运行,无需从头重跑。
  • 暂停态智能失效保护:若在暂停期间修改了已完成上游节点的配置/输入边、修改或清空了入口总任务、修改了全局参考 refs、切换了预设、删除了待拍板 Lead、给待拍板 Lead 新增了未执行前置依赖,或将回环上限调低于已用次数,系统会自动回退到 idle 并拒绝误用旧的 leadResult 跳过审核;canvas_patch 也会明确返回 preservedPausedLead / resetPausedLead 状态提示。
  • 前端暂停态同步体验升级:放开 need-lead 状态下有未同步改动时的自动同步,同步后自动保留上游 已完成 绿标并主动唤醒 .run.json 状态对齐。

🛠 稳定性与质检修复

  • 修复 .run.json 转为权威 status: "idle" 时前端误清为 null 导致旧上游状态将 Lead 重新锁成 ⏸ 待拍板 的问题。
  • 修复条件汇聚菱形图(C → A/B → Lead)在暂停态热改下游时被误判为存在未执行前置依赖的问题,并统一复用共享的 computePrunedIds 剪枝算法。
  • 修复热改新增更靠前的并行 Lead 时可能抢占原 waitingLead 的 leadResult、失败条件节点新增出边未阻塞、删除回环边后残留 loopFeedback / nodeAttempts、canvas_patch 回写清空上游已完成绿标及远端预设名不同步等边界问题。
  • 加固 Cordis commands 子作用域下 resolveService 对 .get() 的安全解析,并为 canvas_generate / canvas_patch 补齐运行中防并发修改守卫与单调递增 .run.json 时间戳。

English Release Notes

✨ Highlights

  • Paused-Lead Hot-Edit Preservation: While a workflow is paused at an intermediate Lead node (⏸ Ready), you can now edit, add, or rewire downstream nodes, prompts, models, edges, condition branches/loops, or comments — either directly in the sidebar or via canvas_patch. Completed upstream outputs and waitingLead stay preserved via reconcilePausedLeadState, and your updated downstream applies immediately on resume.
  • Safe Invalidation Guards: Editing a completed upstream node or its inputs, changing/clearing the entry task, modifying global refs, switching presets, deleting the waiting Lead, wiring a new unexecuted dependency into the waiting Lead, or lowering a loop's maxIterations below its used count cleanly resets to idle and rejects stale leadResult calls instead of silently bypassing review. canvas_patch explicitly reports preservedPausedLead / resetPausedLead.
  • Smoother Client Sync While Paused: Turn-start auto-sync now runs safely for dirty edits during need-lead, preserves completed upstream Done badges across canvas_patch merges, and immediately wakes .run.json polling to reflect authoritative host state.

🛠 Reliability & Audit Fixes

  • Fixed authoritative .run.json status: "idle" being erased to null on the client, which could previously re-lock the UI into ⏸ Awaiting Lead from historical subagent statuses.
  • Fixed false invalidation on conditional diamond graphs converging into a paused Lead (C → A/B → Lead) and unified branch pruning onto a single shared computePrunedIds helper.
  • Fixed parallel Lead insertion stealing leadResult from the active waitingLead, unblocked new outgoing edges off failed condition judges, stale loopFeedback / nodeAttempts after deleting a loop edge, and remote presetName sync drift.
  • Hardened Cordis resolveService to rely strictly on .get(name) on Cordis contexts, added active-run guards to canvas_generate / canvas_patch, and made .run.json timestamps monotonic.