Skip to content

v1.5.5

Choose a tag to compare

@Wasabi2575 Wasabi2575 released this 24 Nov 17:07
· 25 commits to main since this release

中文更新说明

新增功能

  • 统一终止任务按钮 & 全链路即时中止(#11、#13):
    • 工作流运行中或处于 ⏸ 待拍板(waitingLead)状态时,画布左上角 ● ON 旁与入口 Lead 卡片上显示红色 ⏹ 终止 / ⏹ 按钮,一键结束执行或解除等待拍板状态。
    • 对齐 DSH 0.2.2 原生中止 API:通过并发执行的 /canvas-stop 命令 + subagents.interrupt / subagents.drainDescendants / agent.cancel,配合前端 remote.subagents.interruptByUser 与根会话 cancel(),即时中止所有运行中子代理并防止重启/回退产生僵尸子代理;同时支持 canvas_workflow({ cancel: true })。
    • 保留已完成节点进度,将权威 halted / idle 状态写入 .run.json,彻底修复历史状态误触发 ⏸ 待拍板 的问题。
  • 记住横版 / 竖版布局偏好(#9):
    • 切换横版(lr)/ 竖版(tb)自动持久化为全局默认方向,新建会话按偏好初始化;撤销/重做同步还原方向。
    • 保存预设与导出 JSON 同步记录方向(预设列表带 竖/横 徽标),加载预设自动还原方向,内置模板自动适配当前方向。
  • 工具栏撤销 / 重做按钮:在工具栏新增紧凑的 ↶ / ↷ 按钮(与 Ctrl+Z / Ctrl+Y 同步)。

问题修复与优化

  • 修复同时平移 + 滚轮缩放导致的视口漂移/回弹(#10):改为基于实时视口的增量平移步进(applyPanStep),并与缩放擦洗及窗口失焦清理联动。
  • 修复预设加载不及时(#12):通过同窗口自定义事件 + storage / focus / visibilitychange 实现多会话即时同步,保存/删除前先合并最新预设,并在预设面板增加手动 ↻ 刷新按钮。
  • 核心算法与 UI 细节加固:
    • 修复受控循环打回时环外条件剪枝分支未解封的问题,修复建环跨图重叠校验,修复横版高条件节点布局重叠;
    • 拓扑排序与环检测队列优化为 O(V + E) 游标实现;
    • 修复卡片浮层/下拉在竖版布局下的 z-index 遮挡、WorkflowCanvas 跨会话 key 隔离、节点拖拽防误写撤销栈、远端 canvas_patch 字段删除同步等细节。

English Release Notes

New Features

  • Unified Stop Button & End-to-End Instant Cancellation (#11, #13):
    • Displays a red ⏹ Stop pill beside ● ON and a compact ⏹ button on the Entry Lead card whenever a workflow is running or paused at Awaiting Lead (waitingLead).
    • Aligned with DSH 0.2.2 native cancellation APIs: concurrent /canvas-stop command + subagents.interrupt / subagents.drainDescendants / agent.cancel, paired with client remote.subagents.interruptByUser and root cancel(), plus canvas_workflow({ cancel: true }).
    • Preserves partial completed progress and writes authoritative halted / idle state to .run.json so stopped workflows never falsely re-lock into Awaiting Lead.
  • Persist Horizontal / Vertical Layout Preference (#9):
    • Remembers the user's chosen lr / tb direction globally for new sessions and restores direction on Undo/Redo.
    • Presets and exported JSON now record direction (V/H badges in the preset menu) and restore it on load; built-in templates adapt to the active direction.
  • Toolbar Undo / Redo Buttons: Added compact ↶ / ↷ buttons directly in the canvas toolbar.

Fixes & Improvements

  • Fixed viewport drift/snap-back during simultaneous pan + wheel zoom (#10) via incremental pan steps (applyPanStep) and blur/zoom-scrub guards.
  • Fixed delayed preset sync across sessions (#12) with same-window custom event broadcasting, storage/focus/visibilitychange listeners, merge-before-write protection, and a manual ↻ refresh button.
  • Core & UI hardening:
    • Un-prune downstream nodes reachable from loop members on retry rounds so inner condition branch switches execute cleanly; full-graph loop overlap validation; dynamic vertical spacing in lr layout for tall condition cards; O(V + E) queue cursors in topological sort & cycle checks.
    • Fixed popover z-index stacking in vertical layout, WorkflowCanvas per-session keying, drag undo snapshot threshold, and remote canvas_patch field deletion sync.