dygin/dsh-recover-context

Plugin插件 Native原生 ⭐ 4 Apache-2.0 Sessions & Context会话与上下文

dsh agent context make recover or reedit

Project Overview项目介绍

DSH Recover Context (v1.0.4) is a plugin for rolling back and re-anchoring conversations. Core capability: a revert control undoes a chosen question and everything after it, including chat history and workspace file changes, while archiving the old session log and letting a new session resume before that point. A second control loads the original question text into the input without altering context, applying the rollback only when the edited question is submitted. Use it when the model gets derailed by bad context, you want to change direction mid-task, or you need to discard recent file edits. Caveat: the revert action irreversibly drops all subsequent content, so confirm no important files or answers lie within that range.

DSH 上下文恢复插件(v1.0.4)提供回退与会话重整能力。核心功能:在对话界面通过按钮撤销某条提问及其之后的所有上下文与工作区文件变更,旧会话归档保留日志,新会话从回退点继续;另提供一键载入原问题文本以便重新编辑提交。使用场景:当模型被错误上下文带偏、中途想换思路或需要清理工作区变更时。注意事项:点击回退按钮将立即丢弃之后全部内容,操作前请确认无需保留该范围内的文件或回答。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-recover-context@latest

dygin/dsh-recover-context 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-recover-context

v1.0.4

恢复上下文插件

  • **↶ **:点击后,这个问题及其之后的所有内容(对话上下文 + 工作区里产生的文件变更)都会被回退掉——旧会话归档保留日志,新会话从提问之前继续。之后你可以换个方向重新提问,模型不会再被错误的上下文干扰。
  • **✎ **点击把原问题文本载入输入框,此时不改变任何上下文;编辑后提交的那一瞬间执行回退并重新提问。

安装

dsh plugin --profile web add dsh-recover-context@latest

License

Apache-2.0

上一个 Prev dsh-ui-hub 下一个 Next dsh-tool-diff