Problem
CLI currently has a live.Client but SendSessionEvent is not wired up (manager.go:132 lint error). Agents must manually report via curl/workflow.
Solution
Wire live.Client into the main run/chat loop to automatically:
POST /api/report/connect on startup (with engine=cli, context, task)
POST /api/report/step on each task_boundary change
- Periodic heartbeat every 10s to keep RUNNING status
POST /api/report/disconnect on clean exit / Ctrl+C
Acceptance Criteria
Problem
CLI currently has a
live.ClientbutSendSessionEventis not wired up (manager.go:132lint error). Agents must manually report via curl/workflow.Solution
Wire
live.Clientinto the main run/chat loop to automatically:POST /api/report/connecton startup (with engine=cli, context, task)POST /api/report/stepon each task_boundary changePOST /api/report/disconnecton clean exit / Ctrl+CAcceptance Criteria
SendSessionEventlint — wire method properlyGPTCODE_LIVE_URLis set