Skip to content

fix: preserve worktree release across path-only moves - #164

Merged
hkwuks merged 5 commits into
mainfrom
fix/2026-12-02-worktree-idle-reuse
Dec 2, 2026
Merged

hkwuks merged 5 commits into
mainfrom
fix/2026-12-02-worktree-idle-reuse

Conversation

@hkwuks

@hkwuks hkwuks commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Preserve a trusted release when Git moves a linked worktree and only its registered path changes. Show why worktree discovery skips unknown or stale ownership records.

Document when to claim before a Git update, release after the last write, and reclaim before resuming.

TaskFlow traceability

  • Task: TaskFlowDocs/achieved/2026-12-02-worktree-idle-reuse/ (TF-20261202-a2ffc4, v1)
  • Scope: Worktree ownership, discovery diagnostics, documentation, and focused Git regressions
  • Base branch: main
  • Target repository: hkwuks/TaskFlow

Verification

  • Hooks workflow passed on Ubuntu, macOS, and Windows
  • Git for Windows regressions for worktree reuse, ownership, and write re-entry
  • Explicit takeover of a legacy unknown worktree in an isolated Git repository
  • git diff --check and candidate Skill validation
  • Five configured SessionStart entry fixtures and explicit release checks

Review boundaries

  • The fixtures cover the configured entry points and shared scripts
  • Concurrent holders and unverified records still gate automatic reuse
  • Results and limits are recorded in the TaskFlow Plan

@hkwuks
hkwuks marked this pull request as ready for review December 2, 2026 12:14
@hkwuks
hkwuks merged commit 20f3629 into main Dec 2, 2026
8 checks passed
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