Use chat rewind to undo a mistaken prompt in DSH Desktop for macOS. Edit and resend the last text message in place, with subagent rollback when the two tasks can be separated.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/Yestardays/dsh-plugin-chat-rewind/releases/download/v0.3.0/dsh-plugin-chat-rewind-0.3.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Yestardays/dsh-plugin-chat-rewind
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
简体中文 · English · DSH Plugin Market project
Correct your last instruction while the reply is still running, and rewind the subagents that worked on it. A reused subagent keeps its earlier work. A subagent created for the withdrawn task can be removed together with its descendants.
Does my subagent forget the message too?
Say you ask a subagent for the weather in Hangzhou. After it answers, you ask about Shanghai. While it is working, you change “Shanghai” to “Suzhou” and send again.
- Same subagent. It still remembers Hangzhou. The Shanghai request and any partial answer are removed from both your chat and the subagent’s chat.
- A new subagent just for Shanghai. Its whole chat is removed, along with the chats of any subagents it created for that task.
- Overlapping tasks. If the Shanghai request reached the subagent while it was still checking Hangzhou and the two jobs can’t be separated, Rewind keeps the original chats and declines the edit.
Each subagent has its own chat history. Rewind checks how far each had gotten before your message, then updates the main chat and all affected subagent chats together.
Rewinding a running task
- Click next to Copy under your latest plain-text message in the main chat. The editor opens with your original text. You can type while Rewind asks the main agent and the subagents working on that task to stop.
- The editor shows which subagent histories will be kept, shortened, or removed. Choose Send again once. If an agent is still stopping, Rewind waits, checks the histories again, and submits the correction in the same chat.
- Press Esc if you change your mind. If Rewind interrupted the task, it discards your draft and runs the original prompt again. If the task had already finished or you had already stopped all the affected work yourself, Esc just closes the editor. Running the prompt again may repeat tool calls. Existing file edits and messages already sent to external services remain in effect.
If another window submits a new prompt, or a subagent is working on two tasks that cannot be separated, the editor explains the conflict and keeps your draft. You can check again once the situation changes.
Preview
Light · Edit and send again
Dark · Press Esc to rerun the original
Installation
Install the released version. In DSH’s plugin market, search for chat rewind or edit message and install Yestardays/dsh-plugin-chat-rewind. If the market lists an older version, use the package URL below to install v0.4.0 directly.
From the release package. In the DSH sidebar, open Plugins → Add plugin. Paste the URL below into Package name or address, then follow the prompts to install and enable it.
https://github.com/Yestardays/dsh-plugin-chat-rewind/releases/download/v0.4.0/dsh-plugin-chat-rewind-0.4.0.tgz
Try the current source. Run npm pack in the repository root and enter the absolute path of the resulting .tgz in DSH’s Add plugin dialog.
Compatibility and limits
Rewinding a running task has been verified on DSH Desktop 0.2.2-rc.5 on macOS. The market checks compatibility against the published package’s version declaration.
The published package accepts only 0.2.2-rc.5. To test other versions, we changed only the version declarations in temporary test packages. The plugin code was identical to the release.
| DSH version | Observed behavior |
|---|---|
0.2.2-rc.2, 0.2.2-rc.3 |
Edit and resend worked in the official desktop apps. The main chat and a reused subagent both kept the earlier turn and dropped the withdrawn one. |
0.2.2-rc.4 |
The official runtime and web UI passed the same main-chat and subagent rewind checks. We did not verify a standalone macOS desktop build. |
0.2.1-rc.5, 0.2.2-rc.1 |
The host declined the edit even in a standard chat with no subagent. The original history stayed intact. |
0.2.3-alpha.2, 0.2.3-alpha.3 |
Ordinary chats worked in both official desktop apps. The Rewind button was absent and the host declined the edit. |
0.2.3-alpha.1 |
Desktop compatibility is unverified. The standalone host failed to start before it loaded the plugin. |
- Messages. Edit the latest plain-text message from the main chat. Messages with images or attachments are unsupported.
- Pending work. Independent queued input, context compaction, or ambiguous ownership can delay or prevent a rewind.
- Existing chats. Older chats can be rewound when their saved history shows where the tasks separate. Rewind preserves the original chats if that history is insufficient, teams or external agents are involved, or editing would undo a separate settings change.
- Scope. Rewind only changes this group of chats. File edits, messages already sent, and copies saved in other chats remain in place.
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.