Skip to content

fix: prompt for standalone worktree removal#94

Merged
corwinm merged 2 commits into
mainfrom
fix/218-standalone-remove-selection
Jul 16, 2026
Merged

fix: prompt for standalone worktree removal#94
corwinm merged 2 commits into
mainfrom
fix/218-standalone-remove-selection

Conversation

@corwinm

@corwinm corwinm commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • prompt for a removable worktree when arashi remove is run without a target in standalone zero-config repositories
  • exclude the standalone repository's main worktree from selection
  • preserve explicit branch/path hook labels and keep targetless JSON removal unsupported
  • exclude prunable or missing standalone worktrees from selection and direct stale-only cases to arashi prune
  • add standalone lifecycle regressions for interactive selection, stale metadata, JSON behavior, and detached explicit-path hook context

Validation

  • pnpm run test — 968 passed, 1 skipped
  • pnpm run lint — 0 errors (existing warnings only)
  • pnpm run typecheck
  • pnpm run format:check
  • pnpm run build
  • real PTY smoke test: selected a standalone worktree and removed its worktree and branch successfully

Closes corwinm/arashi-arashi#218

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28bb69cecc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/remove.ts
@corwinm
corwinm force-pushed the fix/218-standalone-remove-selection branch from 28bb69c to 7290262 Compare July 16, 2026 02:03
@corwinm
corwinm merged commit 9b27d3f into main Jul 16, 2026
9 checks passed
@corwinm
corwinm deleted the fix/218-standalone-remove-selection branch July 16, 2026 03:05
github-actions Bot pushed a commit that referenced this pull request Jul 16, 2026
## [1.20.1](v1.20.0...v1.20.1) (2026-07-16)

### Bug Fixes

* prompt for standalone worktree removal ([#94](#94)) ([9b27d3f](9b27d3f))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: allow interactive remove in standalone repositories

1 participant