Repository navigation
v0.3.0 — Safer session cleanup
DSH-only session cleanup for dsh-TUI. This release includes the previously unreleased startup-order fix and the reviewed safety hardening.
Fixed
- Wait for
commandsandtuiScenestogether so/nixregisters and opens its scene under the same Cordis activation, including delayed TUI startup. - Keep live session attachments, projection cache, workspace membership, pins and archive references until session-file removal is verified. Report incomplete/partial cleanup accurately.
- Fail closed on storage scan/access, agent stop/idle and session flush errors, with consistent error results.
- Bound Trash-provider termination with TERM/KILL escalation; stop fallback and outer retries if termination cannot be confirmed. A zero exit alone is not proof of removal.
- Apply the switch deadline to the whole operation; handle abort, scene unmount and plugin disposal, isolate jobs by activation, serialize nix commands and prevent late results from authorizing deletion.
- Require explicit confirmation; absence of the questions service no longer grants consent.
- Preserve legacy picker selections across time-label boundaries.
- Terminate failed forked PTY children with status 127 without unwinding the parent's copied Python stack.
Validation
- Node 22.23.4 and 26.13.0: 71 TypeScript tests + 40 Python tests passed on each, zero failures/skips.
- Real cached DSH
SessionStorechecks confirmed attachment/flush preservation on failed removal, fail-closed unreadable storage, and detach after successful removal. - Cached upstream TUI lifecycle checks passed early/late startup, ownership, foreign refusal, service reload and disposal.
- Final CodeRabbit deep review of the safety changes completed with 0 findings; package inventory, build and whitespace checks passed.
Compatibility limits
Requires @deepseek-harness-tui/dsh-tui with its DSH backend in the same profile. Official Harness alone, pi-tui, web, and the Claude/Codex backends are unsupported.
The previously recorded TUI v0.19.0 + Harness 0.2.2-rc.1 Linux live PTY pass predates this safety hardening. The complete live PTY suite for that pair was not rerun for 0.3.0, and no new hosted/live compatibility pass or macOS v0.19.0 Trash verification is claimed. Harness 0.2.2-rc.1 requires Node >=24.9.0. See TESTING.md for provenance and limitations.
Install / upgrade
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui
dsh plugin --profile dsh-tui add dsh-session-cleanup@0.3.0Restart the profile after installation. Published plugin 0.2.2 does not contain these fixes.