Skip to content

fix: keep worktrees report-only during maintenance - #23

Open
azkian1 wants to merge 1 commit into
vibeforge1111:mainfrom
azkian1:fix/report-only-worktrees
Open

azkian1 wants to merge 1 commit into
vibeforge1111:mainfrom
azkian1:fix/report-only-worktrees

Conversation

@azkian1

@azkian1 azkian1 commented Oct 21, 2026

Copy link
Copy Markdown

Normal --apply currently relocates worktrees based only on their root directory modification time. Editing an existing file inside a checkout need not refresh that timestamp, so a checkout with recent work can be moved without checking its Git state or updating Git and app references.

Keep worktree handling report-only in every CLI mode, including --apply --repair-thread-metadata-bloat. Candidate counts, sizes, and --worktree-older-than-days remain available for review. Update the CLI help, README, skill instructions, and flow illustration to describe this behavior.

Validation:

  • Smoke tests passed against isolated fake Codex homes, covering both normal apply and metadata repair.
  • The new regression reproduces the failure before the fix: an old worktree root containing a freshly edited file is moved. With the fix, its path and contents are preserved and no worktree archive artifacts are created.
  • Python syntax checks, the skill validator, existing CI structure/safety checks, and git diff --check passed.

Directory mtimes do not reliably indicate whether a checkout is inactive.
Editing an existing file can leave the root directory timestamp unchanged,
allowing maintenance to move a checkout that still contains current work.

Keep worktree candidate reporting, but disable relocation in all CLI modes.
Update help and documentation, and verify both apply paths preserve the
worktree contents without creating worktree archive artifacts.
@azkian1
azkian1 force-pushed the fix/report-only-worktrees branch from 74b4c96 to e011294 Compare October 21, 2026 12:48
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