xiaoshenming/dsh-session-surgeon
Copy a session ID to continue from an old thread, and repair DeepSeek Harness session logs that refuse to load.
dsh-session-surgeon adds a 'copy session ID' action to the DSH sidebar so a new chat can continue from an old thread — the Codex-style move stock DSH does not expose — and repairs DeepSeek Harness session logs that refuse to load (seq gaps, torn zstd, lone surrogates, events missing their message id, and assistant rows whose settlement fields fail the seed/restore gate). Its inspect tool names the offending row and which of turn/step/stream tripped, then repairs from data the log already has, while only warning on dangling tool calls and never inventing a fake result, turn boundary, or missing streamed block.
Install
dsh plugin --profile desktop add "github:xiaoshenming/dsh-session-surgeon#main"Copied verbatim from the README's CLI-profile install line, which adds the upstream git package pinned to the main branch into the desktop profile. The README's primary path is the DSH Desktop Plugins page, where you add github:xiaoshenming/dsh-session-surgeon#main; updating is the Plugins page's update action for this plugin.
Compatibility
The README targets DSH Desktop (the app it has been developed against since 2026-09-29); the desktop profile lives in ~/.dsh/profiles/desktop and pnpm resolves #main to a commit tarball. It reads and repairs session.vN.jsonl.zstd from format generations v0 through v4, following the installed runtime's format version.
Details
- Repo: xiaoshenming/dsh-session-surgeon
- Category: Sessions & Messages
- Stars: 10
- Version: GitHub repo xiaoshenming/dsh-session-surgeon, installed from the main branch (no npm package). README says it is verified against @deepseek-ai/dsh@0.1.7-rc.2 and the 0.2.0-rc.2 bundled by DSH Desktop.
FAQ
- Does it fabricate missing data to make a session load?
- No. The README states inspect will not invent a result, a turn boundary, or streamed blocks that are gone; it repairs only from data the log already contains and warns on the rest.
- Which session formats can it repair?
- The README says session.vN.jsonl.zstd from every released generation (v0 through v4) is inspected and repaired the same way, following the installed runtime's format version.
Alternatives
dream12347/dsh-session-manager · PwnKY/dsh-session-link · beijingwahw/dsh-companion