dsh-session-purge

Adds a Delete-sessions entry above the workspace list: workspace sessions are listed in sidebar order with their titles and relative times, a click selects a row and a second click deselects it, select-all sits at the top right, and deleting moves them into a recycle bin that restores them byte-for-byte. A second confirmation in the bin clears the log directory, the projection cache, the policy record, the workspace and archive/pin registration, the cost rows, the dsh-context entry and the attachments nothing else references; running or currently open sessions and paths outside the DSH data directory are refused, every destructive call needs confirm:true, and it registers no tool and no command.

Overview

Adds a Delete-sessions entry above the workspace list: workspace sessions are listed in sidebar order with their titles and relative times, a click selects a row and a second click deselects it, select-all sits at the top right, and deleting moves them into a recycle bin that restores them byte-for-byte. A second confirmation in the bin clears the log directory, the projection cache, the policy record, the workspace and archive/pin registration, the cost rows, the dsh-context entry and the attachments nothing else references; running or currently open sessions and paths outside the DSH data directory are refused, every destructive call needs confirm:true, and it registers no tool and no command.

Installation

Install from GitHub

dsh plugin --profile web add github:jh0oo/dsh-session-purge

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands