Skip to content

Fix worktree retirement, cleanup feedback, and session reopening - #12

Merged
EricRasputin merged 2 commits into
mainfrom
codex/worktree-retirement-cleanup
Sep 15, 2026
Merged

EricRasputin merged 2 commits into
mainfrom
codex/worktree-retirement-cleanup

Conversation

@EricRasputin

Copy link
Copy Markdown
Owner

What changed

Fix worktree retirement retries, automatically dispose of recognized Node/Rust/Tauri build folders, and show blocked cleanup in a persistent archive dialog. Saved conversations also remain readable when workspace preparation fails, with preparation retried before the next coding turn.

Why

A fresh branch-cleanup review was rejected as a different retirement after its folder had already been removed. Reviews now retain the original recovery identity while still rejecting stale reviews after restoration and another retirement. Ignored generated folders previously required manual disposal settings; tracked project manifests now identify standard outputs, while configured local files remain recoverable and unknown data or code changes still block deletion.

UI

Blocked archives use the existing retirement dialog to show protection reasons until dismissed. Settings and retirement wording explain automatic generated-folder cleanup. Workspace preparation failures show a warning while allowing the transcript to open. No new screenshot was captured.

Validation

  • 105 native worktree tests passed, including automatic disposal, configuration restoration, and stale-review protection.
  • 32 related UI tests passed; TypeScript, Rust formatting, and Clippy with warnings denied passed.
  • Full CI checks are requested by this PR.

Checklist

  • I ran npm run check (targeted checks listed above; full checks run in CI)
  • This PR is small and focused on the worktree lifecycle
  • I did not mix unrelated changes

Worktree preparation errors, including Apple's Xcode license rejection from Git, previously blocked reopening saved conversations. Open the transcript with a workspace warning, preserve archive state on preparation failure, and retry preparation before the next coding turn.

Add regression coverage for toolchain and setup failures, recovery, and archive-state persistence. Validation: npm run check:web passed with 2,334 Vitest tests, 15 release tests, and TypeScript checks.
Bind later branch-cleanup reviews to the original retirement so a fresh review can finish deletion without replacing code or configuration recovery. Reject reviews that cross a restore and subsequent retirement.

Keep blocked archive outcomes visible in a dialog. Recognize ignored Node, Rust, and Tauri output folders from tracked project manifests so standard generated files no longer require manual disposal settings. Preserve configured local files and retain checks for unknown data, tracked changes, and symlinks.

Validated with 105 native worktree tests, 32 related UI tests, TypeScript checking, Rust formatting, and Clippy with warnings denied.
@EricRasputin
EricRasputin merged commit 45dcac5 into main Sep 15, 2026
3 checks passed
@EricRasputin
EricRasputin deleted the codex/worktree-retirement-cleanup branch September 15, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant