- Início
- Plugins
- Sessões e mensagens
- dsh-rollback
dsh-rollback
hellonil/dsh-rollback
Edit and resend an earlier prompt in the same conversation.
Instalar
dsh plugin --profile web add github:hellonil/dsh-rollbackREADME
dsh-rollback
English · 简体中文
Edit a sent prompt and restart the same DeepSeek Harness conversation from that message. The original attachments and workspace files stay in place.

Quick example

- Click the pencil next to Copy on a user message.
- Revise the prompt and select Send again. Choose Cancel or press
Escto discard the draft.
For example, correct the target file name in an earlier prompt. The next turn starts from the corrected prompt with the earlier chat context and original attachments.
Installation

Install from npm with DSH’s web profile.
dsh plugin --profile web add @hellonil/dsh-rollback
Alternatively, install the GitHub Release package.
dsh plugin --profile web add https://github.com/hellonil/dsh-rollback/releases/download/v0.1.0/deepseek-ai-dsh-rollback-0.1.0.tgz
Requires DeepSeek Harness 0.2.3-alpha.2. Open Plugins in DSH Web, enable the bundle if needed, and refresh.
Install from a local checkout
npm pack
dsh plugin --profile web add ./hellonil-dsh-rollback-0.1.0.tgz
Data and compatibility

The replacement runs in the same session. The old tail disappears from visible chat and model context. The raw session log retains the original events for replay.
The plugin checks for active agents and children, then waits for running jobs owned by the session to stop. jobStopTimeoutMs defaults to 10 seconds. If the wait fails before the edit commits, the conversation history stays intact. Jobs that already received a stop request may still stop.
Reset record and error codes
ctx.rollback.editPrompt(agent, { targetSeq, content }, signal) commits a user/message shadow node with a surfaceOp replacement interval. The rollback projection publishes the intervals to chat clients. RollbackError distinguishes busy, target, content, unbalanced, and committed. The last code means the replacement committed and the resend is still pending.
Development and license

Install the development dependencies. Set DSH_SOURCE_ROOT to a built checkout of the matching DSH version. Run pnpm run build:host and pnpm run build:client.
MIT.
Plugins relacionados
billion-context
ranxianglei/billion-context
dsh-web-ui (dsh-chat-recovery)
zhu1090093659/dsh-web-ui
dsh-synapse
liangmianya/dsh-synapse
EduWork (dsh-side-chat)
ecnu/eduwork