Repository navigation
fix(hooks): report why a merged branch's worktree is kept - #184
Merged
Merged
Conversation
cleanup_worktrees skipped a merged branch's worktree silently when the safety check failed. worktree_is_clean becomes worktree_blocker and returns the failed check as a reason, which cleanup reports as `keep worktree <path>: <reason>` beside the ignored-files line. Decisions stay fail-closed and unmerged worktrees stay silent. Also stop the ignored-files branch from overwriting the list of kept lines, which dropped earlier keep reasons. Closes #183 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryNo blocking findings (0 × P0/P1, 0 × P2/P3). Checked:
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
furedea
approved these changes
Nov 12, 2026
2 tasks done
furedea
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.1.3](v0.1.2...v0.1.3) (2026-11-12) ### Bug Fixes * **hooks:** report why a merged branch's worktree is kept ([#184](#184)) ([5164b3a](5164b3a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
furedea
added a commit
to furedea/dotfiles
that referenced
this pull request
Nov 12, 2026
…463) agent-config を v0.1.3,agent-harness を v0.9.13 に更新し,片付けスクリプトの修正と Pi の srt 設定の修正を取り込む. | 入力 | 変更前 | 変更後 | | --- | --- | --- | | agent-config | `0638e4b` | `9e2843c`(v0.1.3) | | agent-harness | `37de3ac` | `b365277`(v0.9.13) | | 主な変更 | 中身 | | --- | --- | | furedea/agent-config#184 | `cleanup_worktrees.py` がマージ済みブランチの worktree を残すとき理由を1行出す.残す理由の行が後続の worktree で消える不具合も修正 | | furedea/agent-harness#237 | Pi の srt 設定の Nix ソケットを1回だけにする.sidecar・Pi 設定生成の失敗メッセージに操作を含める.PATH の srt に依存しないテスト | ## 検証 - [x] `nix build .#darwinConfigurations.mba.system` が成功 - [x] 生成された `sandbox_policy.json` の `allowUnixSockets` が `["/nix/var/nix/daemon-socket/socket"]` の1件(`37de3ac`→`1ccafe0` 時点で確認) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
概要
cleanup_worktrees.pyは,PR がマージ済みのブランチの worktree が安全確認に落ちると何も出力せずに残していた.落ちた条件をkeep worktree <path>: <理由>として出す.worktree_is_cleanをworktree_blockerに改名し,真偽値ではなく理由(または None)を返す.判定そのものは変えず,fail-closed のまま.gitファイルと admin dir の不一致,commondir・gitdirの不一致,config.worktreeの存在,submodule entry,uncommitted changes,admin dir の未登録・読み取り不可keptリストを上書きし,先に積んだ keep 行を落としていたテスト
tests/hooks/test_cleanup_worktrees_keep_reason.pyを先に書いて失敗を確認し,実装で通した(ファイル長の制約のため新規ファイル,related_test_extensions.jsonに登録)Closes #183
🤖 Generated with Claude Code