Skip to content

fix(cleanup): preserve clean worktrees by default - #741

Merged
NagyVikt merged 2 commits into
mainfrom
agent/codex/preserve-unrelated-clean-worktrees-durin-2026-08-31-09-18
Aug 31, 2026
Merged

NagyVikt merged 2 commits into
mainfrom
agent/codex/preserve-unrelated-clean-worktrees-durin-2026-08-31-09-18

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Summary

  • fix(cleanup): preserve clean worktrees by default

Test plan

  • verified locally

@NagyVikt NagyVikt left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🛡️ GitGuardex code-assist

1 finding(s) — 🟠 1 high

⛔ Merge gate: blocked — 1 blocking finding(s) (blocks on high/critical).

Severity Location Finding
🟠 high templates/scripts/agent-worktree-prune.sh:378 The reflog timestamp regex does not match Git's --date=unix selector format.

Provider codex · commit 129c080

- HIGH templates/scripts/agent-worktree-prune.sh:378 The reflog timestamp regex does not match Git's `--date=unix` selector format. Git includes a timezone suffix such as `@{1756627200 +0200}`, so `activity_epoch` remains empty and falls back to the inherited commit date, causing newly created worktrees based on old commits to be incorrectly pruned.

@NagyVikt NagyVikt left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🛡️ GitGuardex code-assist

✅ No findings. Nothing worth an inline comment in this diff.


Provider codex · commit 80d8fd6

@NagyVikt
NagyVikt marked this pull request as ready for review August 31, 2026 07:30
@NagyVikt
NagyVikt marked this pull request as draft August 31, 2026 07:33

@NagyVikt NagyVikt left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🛡️ GitGuardex code-assist

✅ No findings. Nothing worth an inline comment in this diff.


Provider codex · commit 80d8fd6

@NagyVikt
NagyVikt marked this pull request as ready for review August 31, 2026 07:33

@NagyVikt NagyVikt left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🛡️ GitGuardex code-assist

✅ No findings. Nothing worth an inline comment in this diff.


Provider codex · commit 80d8fd6

@NagyVikt NagyVikt left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🛡️ GitGuardex code-assist

✅ No findings. Nothing worth an inline comment in this diff.


Provider codex · commit 80d8fd6

@NagyVikt
NagyVikt merged commit 7568669 into main Aug 31, 2026
7 checks passed
@NagyVikt
NagyVikt deleted the agent/codex/preserve-unrelated-clean-worktrees-durin-2026-08-31-09-18 branch August 31, 2026 07:42
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