po-et/dsh-session-rescue

po-et★ 0TypeScript最后同步: 2026-08-17

在 GitHub 打开

Fix 'corrupt session log' in DeepSeek Harness: diagnose, safely repair, and salvage broken dsh sessions. Zero dependencies.

README 摘要

dsh-session-rescue Fix "history unavailable for session … corrupt session log" in DeepSeek Harness — safely, with zero data loss in the common cases. 中文文档 If dsh greets you with any of these, this tool is for you: - corrupt session log: seq gap in committed region at line N (expected X, got Y) - corrupt session log: unparsable committed event at line N - first line is not a session header - SessionPersistenceCorruptionError after a crash, force-kill, or running two dsh instances on one session dsh session logs are append-only and strictly validated: one duplicated write after a crash or a second process, and the whole conversation becomes permanently unloadable — even though your content is usually still all there . dsh-session-rescue diagnoses exactly what dsh's loader rejects, removes the redundant side (replayed rows, stale synthetic interrupt-closers), and rebuilds a loadable log. Quick start Can't be repaired? Get your conversation back anyway: Using an AI agent? Just tell it: "Run npx dsh-session-rescue and fix my broken dsh sessions." What it can fix Damage Cause Repair Replayed duplicate rows crash / force-kill / write-behind replay drop duplicates — zero loss Synthetic clo…

在 GitHub 查看完整 README →
工具/开发data-recoverydeepseek-harnessdshdsh-pluginsession-repair

分类