v0.2.0
v0.2.0 — Revert & per-turn review / 撤回与轮次内审查
🚀 New features / 新功能
Revert changes / 撤回变更 — undo ONE specific change (a 3-way line merge keeps later non-overlapping changes; overlapping ones are rejected with a hint) or the WHOLE file (restore the state before the session's first recorded change; a file created in-session is deleted). Writes directly to disk after confirmation.
可单独撤回某一项修改(三路合并保留其后无冲突的修改,有重叠则拒绝提示),或撤回整个文件的全部修改(恢复会话首次修改前状态;会话内新建的文件则删除)。确认后直接改写磁盘。
Per-turn review / 轮次内审查 — each turn's tail shows a 「本轮变更审查」card listing that turn's changed files with expandable diffs (per-op revert); the 「审查」tab gains a 「最新一轮」(latest turn) scope toggle. Turn attribution comes from a direct session-log scan (turn/start · turn/end), so resumed and multi-turn sessions are correct; subagent changes count toward the parent turn.
每轮对话尾部展示「本轮变更审查」卡片(可展开 diff + 单项撤回);「审查」页新增「最新一轮」范围切换。轮次归属直接扫描会话日志得出,重启/多轮会话也能正确划分;子代理修改计入父会话轮次。
Persistence / 持久化 — review records now survive dsh web restarts (~/.dsh/profiles/web/diff-review-state.json; debounced auto-save + sync flush on exit). Delete that file to wipe all history.
审查记录持久化到磁盘(防抖自动保存 + 退出时同步落盘),重启 dsh web 后自动恢复;删除该文件即清空全部历史。
⚠️ Upgrade note / 升级说明
Records created before this version carry no content snapshots or turn tags: they remain visible in the 「审查」tab, but cannot be reverted and never appear in per-turn cards. Restart dsh web to load the new Host logic.
升级前的旧记录无内容快照与轮次标记:仍可在「审查」页查看,但无法撤回、不会出现在轮次卡片中。升级后请重启 dsh web。
📦 Install / 安装
dsh plugin --profile web add dsh-change-review