[BUG] PM agent goes idle on decision points + queue state tracking broken #150
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: Three related bugs where the queue/agent system appears to work but tasks never complete properly.
Bug 1: Agent hits decision point and goes idle instead of asking for guidance
When a delegated agent encounters a blocker (e.g., dependency on another issue), it:
Observed in: Issues #119 and #121 — both depended on #116 (Modularize Shell Script). Agents found the dependency, analyzed options, and stopped — never notifying the user.
Expected behavior: Agent should either:
Bug 2: Queue state does not update after agent finishes
When a delegated task completes:
opencode session list)notified: N, completed: 0Observed in: After delegating #116, #117, #118, #119, #121, #144:
notified: 3, completed: 0Root cause: Daemon is not detecting agent completion. Tasks stay in "notified" state forever.
Bug 3: queue clear does not clear queue/items/
Running
kugetsu queue clear:~/.kugetsu/queue.json(root file)~/.kugetsu/queue/items/*.json(individual queue item files)Result: After clearing queue, daemon still has old items in memory/state and continues processing them.
Fix:
kugetsu queue clearshould also delete all files in~/.kugetsu/queue/items/.Related: Bug #148 (test suite overwrites index.json) — same symptom: system appears ok but is broken.
Severity: High — queue system appears to work but tasks never properly complete.