agent-orchestrator/packages/plugins
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
..
agent-aider fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
agent-claude-code fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
agent-codex fix(codex): classify activity by payload.type for wrapped event_msg 2026-04-13 18:53:50 +05:30
agent-cursor fix(agent-cursor): use printf %s pattern to prevent shell injection 2026-04-10 12:34:07 +05:30
agent-opencode fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-composio fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-desktop fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-discord fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-openclaw fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-slack fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
notifier-webhook fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
runtime-process fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
runtime-tmux fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
scm-github fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
scm-gitlab fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
terminal-iterm2 fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
terminal-web fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
tracker-github fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
tracker-gitlab fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
tracker-linear Merge pull request #882 from DNX/feat/linear-spawn-branch-name 2026-04-11 14:45:57 +05:30
workspace-clone fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30
workspace-worktree fix: merge upstream main and resolve conflicts for cursor agent 2026-04-10 11:48:27 +05:30