You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Codex commentary messages are streamed as agent_message_chunk #169
@agentclientprotocol/codex-acp currently streams Codex agentMessage items with phase: "commentary" as normal assistant body text (agent_message_chunk) instead of thought/progress text (agent_thought_chunk).
This causes ACP clients that render thoughts separately to display Codex commentary/progress in the main assistant message body.
Expected Behavior
Codex agent messages should be mapped by phase:
phase: "commentary" -> agent_thought_chunk
phase: "final_answer" -> agent_message_chunk
phase: null / unknown -> agent_message_chunk
Actual Behavior
Both commentary and final answer text deltas are emitted as:
{
"sessionUpdate": "agent_message_chunk",
"content": {
"type": "text",
"text": "I will inspect the workspace."
}
}
Activity
benbrandt commentedon Jun 26, 2026
As I understand this, the current behavior seems correct to me, as we get separate reasoning entries already.