UndoHaven · Pricing · Docs · Plugins · Log gate · Encryption · What we see · Log in · Account · 中文

A subagent created before 0.2.2: do not append a second catalog row

Discussion #13240 reports subagents created before 0.2.2. Their subagent/catalog rows stay at version 0: a label, and no name. Surfaces that address a child by name fall back to the raw session id. Appending a second catalog row for the same childId, or a duplicate sibling name, makes the V4 reader reject the whole session. The thread was still open on 2026-11-15, with no accepted answer. A check of tag dsh-v0.2.2-rc.3 on 2026-11-13 found no migration that names those old rows.

Fix it by hand

  1. Quit dsh. Copy the parent session directory, the folder that contains session.vN.jsonl.zstd, to another disk before you change anything.
  2. Do not append another subagent/catalog event for a child that already has one. The reported errors are duplicate catalog child and duplicate catalog child name.
  3. If the session already will not open, put the copied log back. Do not ask the agent to rewrite the log.
  4. Leaving a version-0 child unnamed is the state the report describes, and that session can still open. A comment suggested deriving a name in the projection layer. That comment is not an official fix.

The original report, from 0.2.1-rc.2 to 0.2.2-rc.2 on Windows 11 with Node 24.22.1, described an offline rewrite of each version-0 row at the same seq. The author called that log surgery ordinary users should not have to do.

Public discussion

Optional encrypted snapshot

Optional. UndoHaven is an unofficial third-party, compatible with dsh. Copy the directory by hand first, then use an encrypted snapshot if you want one.

npx undohaven init

  1. Install: copy this command.
  2. First snapshot: it stays encrypted on this machine.
  3. Roll back: undohaven restore --to SNAPSHOT_ID

Free covers 7 days of history and 1 device. Pricing

Related