Skip to main content
T

dsh-retry

tyronexie/dsh-retry

Retry or edit any earlier user message in place, restoring images and optionally workspace files.

Install

dsh plugin --profile web add github:tyronexie/dsh-retry

README

dsh-retry

A DeepSeek Harness plugin: one-click retry or edit-and-resend for any earlier user message.
Rewinds to that message (images restored too); ⟳ resends it as-is automatically, ✏ brings the original text back to the composer for editing — Codex / Claude Code style message-level retry.

English | 中文

npm version npm downloads tests

Features

Every user message row carries two quick actions:

  • ⟳ Retry from here — one click rewinds to that message and resends it as-is: everything after the target is withdrawn (model context and UI), the original text and images return to the composer, and the message is sent again. No dialogs.
  • ✏ Edit and resend — rewinds to that message, puts the original text and images back into the composer, and focuses it; edit and send yourself.

Advanced: the /rewind (alias /undo) command keeps the full rewind flow — optionally restoring workspace files changed by DSH's file-editing tools (Claude Code checkpoint semantics).

At a glance

CapabilityDescription
One-click retryRewind + image restore + auto-resend in a single click
Edit in placeRewind + composer refill; you edit and send
Images surviveWithdrawn images are fully restored to the composer
In-place rewindSame window, no forks, no leftover copies
File restore/rewind can also restore workspace file changes
Safety modelSession log is append-only, auditable, never rewritten

Preview

The actions row of every user message: copy · ⟳ retry from here · ✏ edit and resend

The two quick actions on a message row

⟳ and ✏ button close-up

Install

CLI:

dsh plugin --profile <name> add dsh-retry

GUI: Plugins page → Add plugin → enter dsh-retry → Install.

Requires DSH >=0.2.2-rc.1 <0.3.0-0.

Usage

  1. Find the user message to retry.
  2. Click ⟳ to resend as-is; or ✏ to edit it in the composer first.
  3. To rewind files along with the conversation, use /rewind and pick "Rewind conversation and files".

How it works

Conversation rewind follows dsh-rewind's "mask, never delete" design: a standard marker is appended to the session log, withdrawing everything after the target from both context and UI, while the log stays append-only and auditable. File restore is driven by lightweight local checkpoints that track only DSH file-edit changes.

Snapshot management

File checkpoints live under <dsh home>/rewind-snapshots/, keeping the latest 100 checkpoints per session. Turn off "Snapshot backups" in the plugin's settings card if you don't need file restore. See upstream docs: Snapshot auto cleanup.

Credits

Built on SiriLee/dsh-rewind (MIT) — the rewind engine and checkpoint mechanism come from upstream; this repo adds the message-level retry/edit interactions. Upstream continues to be maintained independently; give the original a star.

License

MIT

Related plugins