agent/pkg/monitor
Snider 04e3d492e9 fix(monitor): emit agent.completed per task, verify PIDs for queue.drained
- Export ReadStatus (was readStatus) for cross-package use
- AgentCompleted now emits agent.completed with repo/agent/workspace/status
  for every finished task, not just failures
- queue.drained only fires when genuinely empty — verified by checking
  PIDs are alive via kill(0), not just trusting stale status files
- Fix Docker mount paths: /root/ → /home/dev/ for non-root container
- Update all callers and tests

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-24 13:02:41 +00:00
..
harvest.go fix(monitor): scan new workspace layout for channel notifications 2026-03-22 15:45:32 +00:00
harvest_test.go test(monitor): add harvest and channel notification tests 2026-03-21 13:21:23 +00:00
monitor.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
monitor_test.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
sync.go refactor(monitor): adopt core helpers 2026-03-22 13:40:14 +00:00