dyhyfjn/dsh-rollback-withdraw0

dsh-rollback-withdraw

为 DeepSeek Harness Web 提供类似 Trae 的会话撤回功能。在每条消息旁提供回滚按钮,可一键恢复工作区代码并回滚对话至上一个完成的轮次。

AI 分析

适合需要频繁调试代码和回退对话的开发者。通过一键回滚代码和会话,能有效避免因模型生成错误代码而手动撤销的繁琐操作。

套件
dsh-rollback-withdraw
版本
0.1.1
授權
MIT
最近更新
2026年8月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dyhyfjn/dsh-rollback-withdraw

Usage

  1. Chat with the agent as usual; a rollback point is recorded automatically after every completed turn.
  2. Hover a message and click the undo icon — click once to arm ("confirm"), click again to execute.
  3. The workspace is restored and the UI switches to the forked, rolled-back session. Continue from there.

The git-branch icon in the session header shows git-mode status:

  • lit (brand color + green dot) = git auto-commit on;
  • dimmed = off, or the workspace is not a git repository (tooltip explains);
  • disabled when the workspace has no git repo.

Configuration

KeyWhereDefaultMeaning
gitAutoCommit/.dsh-rollback/config.jsontrueuse git commits as rollback points when the workspace is a git repo

Ignored paths (never snapshotted, committed, or deleted): node_modules, .git, dist, build, .next, .venv, __pycache__, .idea, .vscode, coverage, *.pyc, *.log, … (see IGNORE_DIRS / IGNORE_FILES in lib/index.js).