You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm-dispatch sessions run in the primary clone and leave ~/git/code on their PR branches #12213
On 2026-11-21 at 02:07 CST the laptop's pm-git-sync started failing: ~/git/code was on bolt/cache-notification-clock-formatters-12207, then on palette/add-tag-title, with a tracked edit in templates.rs while the session worked.
The commits came from two pm-dispatch sessions: "Scheduled Bolt — developing-today/code" (queue task #20901, issue #12207, PR #12210) and "Scheduled Palette — developing-today/code" (PR #12211). POST /v1/sessions defaults directory to the repo's primary clone (REPO_DIRS), so OpenCode runs the session in ~/git/code. That clone is the deploy checkout pm-git-sync keeps on clean main (#8171). The Palette branch was also cut from the Bolt branch, because both sessions shared one checkout. One session also set a repo-local user.name = repo-worker-tmp-code-b in ~/git/code/.git/config.
Fix
pm-dispatch gives every launch into a primary clone its own detached worktree at the remote default branch (PM_DISPATCH_WORKTREE_ROOT, default ~/git/fleet). It never runs a session in the primary. If the worktree can't be made, the launch fails the same way any other pre-session failure does (the task is cancelled and the issue gets a note).
The prompt prefix names the worktree and says the primary is off limits.
The pm-dispatch package puts git on its wrapper PATH.
Activity
developing-today commentedon Nov 21, 2026
CODE-4442