agent-orchestrator/packages
Dhruv Sharma df9f3c8b5d fix(codex): classify activity by payload.type for wrapped event_msg
Real Codex sessions emit records like
`{"type":"event_msg","payload":{"type":"error",...}}` and
`{"type":"event_msg","payload":{"type":"approval_request",...}}`.
readLastJsonlEntry only exposed the top-level `type`, so the codex
plugin's activity switch matched `event_msg` and decayed to ready/idle,
never surfacing `blocked` or `waiting_input`. The approval_request/error
branches were dead code for payload-wrapped sessions, which is the exact
format this PR series is migrating to.

- readLastJsonlEntry now returns payloadType alongside lastType.
- Codex getActivityState prefers payloadType when present and classifies
  task_started/agent_reasoning as active, task_complete as ready, and
  the approval/error variants as waiting_input/blocked.
- New tests cover the payload-wrapped approval_request, exec_approval_request,
  error, task_started, and task_complete cases end-to-end.
- Core utils gains coverage for payloadType extraction and null fallbacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 18:53:50 +05:30
..
ao fix(ao): add process.exit(0) after pty.kill() to prevent hang in compatibility probe 2026-04-11 14:54:57 +05:30
cli fix(cli): update stale ao-core imports (#1143) 2026-04-12 03:56:37 +05:30
core fix(codex): classify activity by payload.type for wrapped event_msg 2026-04-13 18:53:50 +05:30
integration-tests fix: merge main and address review findings for prompt-driven spawn 2026-04-11 21:44:57 +05:30
plugins fix(codex): classify activity by payload.type for wrapped event_msg 2026-04-13 18:53:50 +05:30
web fix(web): make PR title clickable on /prs page (#1146) 2026-04-12 08:43:53 +05:30