Skip to content

Remove legacy codex exec --json format - #4525

Merged
pakrym-oai merged 5 commits into
mainfrom
pakrym/delete-legacy-json-format
Oct 1, 2025
Merged

pakrym-oai merged 5 commits into
mainfrom
pakrym/delete-legacy-json-format

Conversation

@pakrym-oai

@pakrym-oai pakrym-oai commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor

codex exec --json now maps to the behavior of codex exec --experimental-json with new event and item shapes.

Thread events:

  • thread.started
  • turn.started
  • turn.completed
  • turn.failed
  • item.started
  • item.updated
  • item.completed

Item types:

  • assistant_message
  • reasoning
  • command_execution
  • file_change
  • mcp_tool_call
  • web_search
  • todo_list
  • error

Sample output:

Details `codex exec "list my assigned github issues" --json | jq`
{
  "type": "thread.started",
  "thread_id": "01999ce5-f229-7661-8570-53312bd47ea3"
}
{
  "type": "turn.started"
}
{
  "type": "item.completed",
  "item": {
    "id": "item_0",
    "item_type": "reasoning",
    "text": "**Planning to list assigned GitHub issues**"
  }
}
{
  "type": "item.started",
  "item": {
    "id": "item_1",
    "item_type": "mcp_tool_call",
    "server": "github",
    "tool": "search_issues",
    "status": "in_progress"
  }
}
{
  "type": "item.completed",
  "item": {
    "id": "item_1",
    "item_type": "mcp_tool_call",
    "server": "github",
    "tool": "search_issues",
    "status": "completed"
  }
}
{
  "type": "item.completed",
  "item": {
    "id": "item_2",
    "item_type": "reasoning",
    "text": "**Organizing final message structure**"
  }
}
{
  "type": "item.completed",
  "item": {
    "id": "item_3",
    "item_type": "assistant_message",
    "text": "**Assigned Issues**\n- openai/codex#3267 – “stream error: stream disconnected before completion…” (bug) – last update 2025-09-08\n- openai/codex#3257 – “You've hit your usage limit. Try again in 4 days 20 hours 9 minutes.” – last update 2025-09-23\n- openai/codex#3054 – “reqwest SSL panic (library has no ciphers)” (bug) – last update 2025-09-03\n- openai/codex#3051 – “thread 'main' panicked at linux-sandbox/src/linux_run_main.rs:53:5:” (bug) – last update 2025-09-10\n- openai/codex#3004 – “Auto-compact when approaching context limit” (enhancement) – last update 2025-09-26\n- openai/codex#2916 – “Feature request: Add OpenAI service tier support for cost optimization” – last update 2025-09-12\n- openai/codex#1581 – “stream error: stream disconnected before completion: stream closed before response.complete; retrying...” (bug) – last update 2025-09-17"
  }
}
{
  "type": "turn.completed",
  "usage": {
    "input_tokens": 34785,
    "cached_input_tokens": 12544,
    "output_tokens": 560
  }
}

@pakrym-oai pakrym-oai changed the title Delete legacy json format Remove legacy codex exec --json format Sep 30, 2025
@bolinfest
bolinfest self-requested a review October 1, 2025 00:21
@pakrym-oai
pakrym-oai merged commit 7fc3edf into main Oct 1, 2025
@pakrym-oai
pakrym-oai deleted the pakrym/delete-legacy-json-format branch October 1, 2025 00:21
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants