agent/pkg/monitor
Snider 2d58145e65 test(monitor): add unit tests for completions, inbox, lifecycle
Cover checkCompletions, checkInbox, syncRepos, loop, Poke,
Start/Shutdown, New, initSyncTimestamp, and agentStatusResource.
Mock HTTP endpoints with httptest, use t.TempDir for workspace
scanning, and create fake status.json files for completions.

Also fix dispatch.go build error (removed unsupported RunOptions
fields: KillGroup, Timeout, GracePeriod).

Coverage: 23.2% → 86.5%

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 00:45:43 +00:00
..
harvest.go fix: Codex round 8 — remote success propagation + stale question cleanup 2026-03-21 17:46:04 +00:00
harvest_test.go test(monitor): add harvest and channel notification tests 2026-03-21 13:21:23 +00:00
monitor.go feat(monitor): include message content in inbox channel events 2026-03-21 20:08:13 +00:00
monitor_test.go test(monitor): add unit tests for completions, inbox, lifecycle 2026-03-22 00:45:43 +00:00
sync.go fix: address Codex round 7 — path traversal + dispatch check 2026-03-21 17:25:23 +00:00