feat: worktree 削除アクション(dirty ガード・確認付き)#23
Merged
Conversation
セッション行の右クリックに「worktree を削除…」を追加。閉じる(一覧から外す) とは分離した破壊的アクション。削除前に dirty を判定し、変更があれば確認文言を 「強制削除(変更を破棄)」に切替えて --force で削除。clean は通常削除。rm -rf は 使わず git worktree remove のみ。main worktree や git エラーは alert で表示。 - SessionStore.isWorktreeDirty / removeWorktree(force:) を追加 Closes #13
sasagar
added a commit
that referenced
this pull request
Jul 1, 2026
セッション行の右クリックに「worktree を削除…」を追加。閉じる(一覧から外す) とは分離した破壊的アクション。削除前に dirty を判定し、変更があれば確認文言を 「強制削除(変更を破棄)」に切替えて --force で削除。clean は通常削除。rm -rf は 使わず git worktree remove のみ。main worktree や git エラーは alert で表示。 - SessionStore.isWorktreeDirty / removeWorktree(force:) を追加 Closes #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13
概要
「閉じる」(一覧から外すだけ・worktree は残す)とは分離した、worktree を削除する破壊的アクションを追加。
内容
role: .destructive)。isWorktreeDirtyで判定し、dirty なら確認文言を「強制削除(変更を破棄)」に切替。clean は通常削除。git worktree remove(rm -rfは不使用)。dirty は--forceでのみ削除。確認
xcodebuild成功、再起動して安定動作。git worktree removeが拒否(use --force)、--forceで削除成功。補足(後続で追加可能)