[BUG] cmd_start creates session but never forks PM agent to work on it #187
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
cmd_start (and the daemon's process_task) creates a worktree and session file, but never actually starts the opencode agent on that session. The queue item is marked 'notified' but no agent is ever forked.
Steps to reproduce
Expected behavior
After creating the worktree + session, cmd_start or process_task should fork the PM agent via:
opencode run --continue --session "$new_session_id" "$message"
This is how the legacy cmd_delegate path works (line 197):
nohup sh -c "GITEA_TOKEN=*** opencode run '$message' --continue --session '$pm_session'" >> log_file 2>&1 &
Investigation
Severity
Critical -- delegation is completely broken. Every delegated task fails to reach the PM agent.