Skip to content

Comments

fix(taskctl): create pipeline worktrees under .worktrees/ inside project (#286)#287

Merged
randomm merged 2 commits intodevfrom
fix/issue-286-worktree-project-local-path
Feb 21, 2026
Merged

fix(taskctl): create pipeline worktrees under .worktrees/ inside project (#286)#287
randomm merged 2 commits intodevfrom
fix/issue-286-worktree-project-local-path

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 21, 2026

Fixes #286

Changes

  • worktree/index.ts: add optional rootPath to CreateInput — when provided, worktrees are created there instead of ~/.local/share/opencode/worktree//
  • pulse.ts spawnDeveloper: pass rootPath = Instance.directory + '/.worktrees' so pipeline tasks get worktrees inside the project
  • pulse.test.ts: two new tests covering rootPath behaviour

Why

Pipeline worktrees were created in ~/.local/share/opencode/worktree/ causing:

  • Permission dialogs when @ops accessed them
  • Hard to inspect task work
  • Inconsistency with manual @ops worktrees (which live in .worktrees/)
  • Main project landing in detached HEAD state

.worktrees/ is already in .gitignore. Backward compatible — callers without rootPath use the old default.

@randomm randomm merged commit ac61ea9 into dev Feb 21, 2026
1 check passed
@randomm randomm deleted the fix/issue-286-worktree-project-local-path branch February 21, 2026 10:58
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.

fix(taskctl): pipeline worktrees should be created under .worktrees/ inside project, not ~/.local/share/opencode/worktree/

1 participant