dsh-rewind-plugin 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,44 +0,0 @@
1
- # Troubleshooting
2
-
3
- [简体中文](troubleshooting.zh.md)
4
-
5
- ## History load failure: `…turn-tail… received an update before its start Match`
6
-
7
- Rewinds from `≤ 0.2.4` collided with the next real turn's `turn/start`, so reopening the session showed
8
-
9
- ```
10
- Failed to load history: conversation Context …:turn-tail… received an update before its start Match (internal)
11
- ```
12
-
13
- and the history vanished. Rewinds from `0.2.5` on no longer collide; already-corrupted sessions need an offline repair (the log is append-only). The repair tool (`dsh-rewind-repair`) is no longer shipped from v0.4.0 — install a pre-v0.4.0 release to get it (fully quit dsh web / host first, then):
14
-
15
- ```sh
16
- npm exec --yes --package=dsh-rewind-plugin@0.3.3 -- dsh-rewind-repair
17
- npm exec --yes --package=dsh-rewind-plugin@0.3.3 -- dsh-rewind-repair -- --dry-run # preview only
18
- ```
19
-
20
- It only rewrites the marker events' `data.turn` (seqs, order, and zstd frame structure intact) and backs up the original file before writing — safe to run repeatedly. From a source checkout of a pre-v0.4.0 tag: `node scripts/repair-markers.mjs` (identical flags).
21
-
22
- ## Known compatibility boundaries
23
-
24
- Behavioral notes verified by the compatibility probe suites
25
- ([compat-audit.md](compat-audit.md)) — none of these is a crash:
26
-
27
- - **Session stats / telemetry do not roll back**: whole-log folds count the
28
- withdrawn turns, and telemetry records the rewind's marker and ghost-step
29
- frame under the reused turn. Expected whole-log semantics.
30
- - **Withdrawn messages stay searchable and exported**: rewind cuts only the
31
- model-visible surface; full-text search and `/export` still see the raw log.
32
- - **Session titles may regenerate** after a rewind (title derives from the
33
- current surface).
34
- - **Files written by a cancelled tool call** (write happened, no result, no
35
- snapshot commit) cannot be restored by "conversation and code".
36
-
37
- **R-OPENSTEP** (harness-side, plugin does not guard): a session log carrying
38
- an *unclosed* `step/start` (a crash before the agent loop's `finally` closed
39
- the step) makes any later step activity break token-meter replay (and
40
- `/compact`). Harness `0.1.1-rc.2` fixes the crash path on load
41
- (`interruptedTurnClosers` closes leftover step/turn boundaries). A plugin-side
42
- up-front rejection was implemented and **reverted** (false positives broke the
43
- rewind feature on real session logs, `177ec14`); the residual runtime-produced
44
- risk is accepted. Tracked in the compat-audit.
File without changes