Skip to content

Surface 'claude project purge' from the YouCoded session UI #88

@itsdestin

Description

@itsdestin

Surfaced by /release v1.2.2 → next review (review-cc-changes agent — future-work item).

CC v2.1.126 added `claude project purge [path]` — a destructive but useful command that wipes all CC state for a project (transcripts, tasks, file history, config entry).

YouCoded's session UI already knows the project root for each session. A "Reset project state" option in the session menu would be a natural surface — gated behind an explicit confirmation given the `--all` / `-y/--yes` semantics.

Sketch

  • Add a "Reset Claude project state" affordance to the session/settings menu (likely under "Danger zone" or similar).
  • Confirmation dialog explaining what will be deleted (transcripts, tasks, file history, config entry).
  • Spawn `claude project purge --yes` (after confirm) via `pty-worker` or a shelled `claude` invocation.
  • Expect the running session to need restart afterward — surface "Session ended due to project reset" in the UI.

Effort

Small — once the CC built-in command list is updated (#TBD).

Quoted CHANGELOG entry

v2.1.126: Added `claude project purge [path]` to delete all Claude Code state for a project (transcripts, tasks, file history, config entry) — supports `--dry-run`, `-y/--yes`, `-i/--interactive`, and `--all`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions