Inline-edit and recall your own user messages in dsh web — lazily and seamlessly, with a version pager and per-session draft persistence.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-easyrewrite
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Renzic-Stone/DSH-EasyRewrite
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
DSH-EasyRewrite
#dsh #deepseek-harness #recall #rewrite #bubble-edit #version-pager #i18n #multilingual
Inline-edit & recall your own user messages in the DeepSeek Harness Web UI — lazily, seamlessly, and without ever losing your work.
Click your own message bubble to edit it in place; hit the recall button beside copy to withdraw it and everything after it. Nothing is ever really changed until you commit — the conversation, the model context, and the session log stay untouched until you press Confirm (rewrite) or Send (recall).
Compatible with DeepSeek Harness Web (v3.1.0 fully compatible with dsh 0.2.x and 0.1.7 series, focused on performance & underlying architecture optimizations and stability bug fixes — including locked atomic shadow Vault writes, clean Cordis hot-reload lifecycle disposal, React Hooks gate isolation, and history-safe pager guards; users on 0.1.1-rc.2 or earlier please stay on 2.3.1). Pure official extension points, zero DSH source modification.
📸 Visual Tour
Quick Start
# One-line install via npm
dsh plugin --profile web add dsh-easyrewrite
Features (what we've built)
Bubble Inline Edit (Rewrite) — Shipped (M2/M4)
- Click to edit: Click your message bubble to enter inline editing directly (original Markdown source preserved), Esc to cancel / Ctrl+Enter to confirm.
- Adjustable width modes: Compact (starts at bubble width, up to 360px) / Standard (fixed 360px) / Expanded (full message width) / Custom, with automatic vertical expansion and smooth inner scrolling.
- On-the-spot model & effort switching: Native dropdown menu embedded inside the bubble editor allows instant switching of provider, model, and reasoning effort for the resend.
- Rich image support & drag-drop management: Multi-image messages render in equal-width thumbnail strips, supporting individual
×deletion, clipboard paste, and drag-and-drop addition. Edits survive tab switching and page reloads.
Message Recall (撤回) — Done, End to End
- Native & frictionless action: Permanent recall button placed cleanly next to the official copy button on hover.
- Inline confirmation capsule: Native-styled capsule (
撤回这条消息及其后 x 条提问?+ Confirm / Cancel pills), calculating the exact count of subsequent user prompts to be truncated in real time. - Lazy commit & "正在修改" editing bar: Confirming only populates the composer with a top editing bar; truncation only commits when you press Send. Cancelling (
×) at any point cleanly restores your draft with zero context disruption. - Seamless replacement & context folding: Subsequent conversation turns are automatically folded and hidden during edit. Resending archives the original session and seamlessly replaces it with the truncated new session.
Version Pager (< X >) — Shipped (M3)
- Seamless history version navigation: The
‹ X/N ›control is embedded directly inside the action strip of the final reply after every recall/edit resend. - Context synchronization: Clicking arrows (or pressing ←/→ keys) toggles the target branch, and all subsequent dialogue context automatically syncs with the active version.
- Archive swap & smooth viewport anchoring: The workspace list keeps only one active session at any time, while the chat viewport stays rock-solid without jumping.
Settings & Customization — Shipped (M3/M4)
- Integrated settings card: Integrates into Settings → Plugins → EasyRewrite with native design tokens and automatic trilingual localization (中文 / English / 日本語).
- Rich toggles & fine-grained control:
- Bubble edit toggle & fallback recall button
- Bubble editor width presets (Compact / Standard / Expanded / Custom)
- Recall confirmation capsule & visual display modes (Simple / Minimal / Info)
- Customizable shortcut recording (trigger recall with one keystroke when composer is unfocused)
- Composer conflict resolution (Overwrite mode safely restores pre-existing draft upon send/cancel)
- Full version history tree explorer with manual restoration
- Built-in one-click plugin update check & auto-upgrade
Draft Auto-Backup — Shipped (M3)
- Pending drafts untouched for over 10 seconds with recent changes are safely backed up locally; deleted immediately upon Confirm/Send.
- Path:
$DSH_HOME/dsh-easyrewrite/backups/<sessionId>.json. - Crash recovery: restores draft automatically only when there is no active local draft — never overwriting your live input.
Landscape & How We Differ from Similar Plugins
In the DSH rollback and state restoration ecosystem, different technical routes have formed (our plugin currently ranks in the Top 4 overall, and #1 in the pure chat bubble editing and interaction category):
- Workspace/Code File Rollback Pioneers (e.g.,
dsh-rewind231⭐,dsh-turn-rewind144⭐):- Focused on tracking workspace file changes (Change Ledger) and rewinding code alongside chat. Some adopt in-window event log modifications to avoid session branches, but offer limited fine-grained UI interaction (in-bubble editing, document attachments, draft isolation).
- Global System Disaster Recovery (e.g.,
dsh-undo-savepoint197⭐):- Dedicated to full system snapshots, offline rescue GUIs, and crash restoration — a heavy global safety caretaker rather than an everyday lightweight chat interaction plugin.
- Immersive In-Bubble Editing & Seamless UX (🌟
DSH-EasyRewrite129⭐):- Dedicated to making message editing and recall feel truly native. v3.0.0 introduces the independent shadow Vault engine, completely preventing sidebar archive pollution without hacking fragile memory logs, while delivering the only in-bubble expansion and universal attachment relay experience.
| Core Capabilities | 🌟 dsh-easyrewrite (v3.1.0) | Traditional Recall Plugins (e.g. recall-plugin) | Code/File Rollback (e.g. dsh-rewind/turn-rewind) | Global Savepoint (e.g. savepoint) |
|---|---|---|---|---|
| Bubble Inline Edit (Rewrite) | ✅ Exclusive (click bubble to expand inline) | ❌ None (jumps to composer only) | ❌ None (modal/CLI only) | ❌ None |
| Message Recall | ✅ (next to native copy button) | ✅ (basic recall) | ✅ (command/button) | ⚠️ (full rollback) |
| Sidebar Cleanliness (Anti-archive pollution) | ✅ Autonomous Vault, 100% pure sidebar | ❌ Pollutes with grey archived sessions | ⚠️ No branch but hacks memory logs | ⚠️ Snapshot overwrite |
| Multi-version History Navigation | ✅ Top < X / Y > + settings family tree |
❌ None | ⚠️ Linear rewind only | ⚠️ Savepoint index |
| Universal Attachments (Images + Docs) Relay | ✅ Official FileCard aligned, draft isolation | ❌ Partial images only | ⚠️ Code files only | ❌ Binary image only |
| Inline Model & Reasoning Effort Switch | ✅ In-bubble official selector & badge | ❌ None | ❌ None | ❌ None |
| Lazy Commit (Context untouched until confirm) | ✅ Context untouched before send | ❌ Some edit immediately | ❌ Immediate rewind | ❌ Restore overwrite |
| Trilingual Native i18n | ✅ Full zh / en / ja coverage | ❌ Chinese only | ⚠️ Partial English | ⚠️ Partial |
| Official Extension Points Only | ✅ Zero source patches, clean uninstall | ⚠️ Some need patches | ⚠️ Deep internal APIs | ⚠️ Standalone daemon |
Design philosophy
1. Simple to use, easy to onboard, compatible by contract
- Interactions need no manual: click the bubble to edit, recall key sits beside copy — no new concepts, no new entry points.
- Sensible defaults: the default settings are the right choice for most scenarios; install, restart, done.
- Compatibility is a hard promise: only official extension points (keyed slot override, official
sessions.forkRPC, official components & design tokens) — no source patches, no brittle internal APIs, actively adapted across DSH releases. - Uninstall restores everything; nothing of your install is left behind.
2. Faithful to the original experience — seamless & invisible
- UI language follows dsh's native design (grey-blue palette, rounded corners, pills, official icons), dark/light theme aware — feels like an official feature, not "another plugin skin".
- Original interactions stay intact: copy key, hover timestamps, bubble look — all preserved.
- Invisible: day-to-day use barely notices the plugin — features live where you expect them, results match intuition; no popups, no interrupted rhythm.
- Lazy commit is the foundation: entering edit mode or confirming a recall is purely local draft state; context changes only at "确定" (rewrite) or "发送" (recall). Close dsh mid-way and nothing moves.
- Seamless replacement: after a recall it feels like the original conversation was edited — autonomous versioning via the shadow Vault without "a new conversation appeared" split or sidebar clutter.
- Bubble edit (v3.0.x fully shipped): click the bubble to edit in place, what you edit is what you send — the natural extension of the same seamless philosophy.
3. Persistent & accident-proof
- Edit/recall drafts persist per session: switching chats, refreshing, even restarting dsh — progress resumes where you left it. No "lost half-written" moments.
- In overwrite mode the pre-recall draft is restored after both send and cancel — no data loss on any path.
- Long-idle pending drafts auto-backup to local files (removed once handled) — a safety net for the extreme case.
- Every destructive step has a confirm and an undo path: confirmation capsule, × cancel, one-pending-per-session — mistakes are recoverable, data is never lost.
4. Complete logging, fast diagnosis
- Every client step (load, confirm, pending, send-hook, fork, resume) is reported to the host and written to a unified log:
$DSH_HOME/dsh-easyrewrite.log. - Uniform format (JSON lines: time / level / tag / message / data) — one reproduction is enough to locate the issue, no back-and-forth descriptions.
- Host behaviour lands in the same log (requests, rejection reasons, exceptions), so both halves reconcile on one trail.
- Logs stay local; nothing is uploaded.
5. Continuously updated, actively compatible
- Follows DSH releases (rc.x → stable); upstream API changes are adapted promptly.
- Semantic versioning + CHANGELOG; breaking changes announced in advance.
- Community-driven: issues and PRs answered, new ideas and scenarios folded into the roadmap.
Install
# npm (published)
dsh plugin --profile web add dsh-easyrewrite
# or from GitHub
dsh plugin --profile web add github:Renzic-Stone/DSH-EasyRewrite
Restart dsh web, hard-refresh (Ctrl+Shift+R), done.
A note on when recall works: DSH forks only at closed-turn boundaries, so a message inside a still-open turn cannot be truncated yet — wait for the reply to finish, then recall. (The UI tells you:
该消息所在回合尚未结束…)
Debugging
Every client step is reported to the host and written to a unified log:
$DSH_HOME/dsh-easyrewrite.log # e.g. ~/.dsh/dsh-easyrewrite.log
JSON lines: { t, level, tag, message, data }.
Structure
dsh-easyrewrite/
├── lib/index.js # host half: boundary resolution + /bubble/recall, /bubble/log
├── src/client.src.js # client template (icons inlined at build)
├── assets/ # recall / edit icons (PNG, theme-adaptive via CSS invert)
├── build.mjs # assets → data-URL → lib/client.js
├── DESIGN.md # full interaction design (v1.0, 20 product decisions)
├── PROJECT_PLAN.md # roadmap, architecture, git workflow
└── docs/ # api-facts, m0-verify
License
MIT
Links
More in this category
ranxianglei/billion-context★ 7682
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★ 4419
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★ 724
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
MichengAI/dsh-archive-manager★ 369
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 317
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.
SiriLee/dsh-rewind★ 279
Conversation rewind: one click back to any earlier user message, in the same window — no new branch, no leftover copy; the target message is refilled into the composer, with optional workspace-file restore — the full Claude Code /rewind semantics.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.