fix(kugetsu): queue daemon runs PM agent in correct worktree with proper token #157
Reference in New Issue
Block a user
Delete Branch "fix/issue-156"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The queue daemon was running the PM agent with
--continue --session $pm_sessionwhich caused the agent to operate in the wrong directory (daemon process CWD ~/.kugetsu/ instead of the target worktree). This resulted in zero commits after 6+ hours of processing.Changes
Root Cause
Without --dir, opencode uses the daemon process CWD (~/.kugetsu/), not the session directory. Without --fork, the shared session has no per-task isolation.
Fixes #156
lgtm