Fix OpenAI Codex provider instructions/utf8 errors

t-428·WorkTask·
·
·
Created1 month ago·Updated1 month ago

Description

Edit

Fix OpenAI Codex provider errors when running agent.

Symptoms

  • Codex requests failed with: "Instructions are not valid"
  • Codex streaming failed on invalid UTF-8: "Cannot decode byte ..."

Fix

  • Use Codex CLI instructions as instructions payload and pass system prompt via developer message.
  • Decode SSE chunks with lenient UTF-8 decoding.

Acceptance

  • agent --provider=openai-codex --model=gpt-5.2-codex "ping" succeeds.

Timeline (4)

🔄[human]Open → InProgress1 month ago
💬[human]1 month ago

Fixed Codex instructions payload to use Codex CLI prompt text and switched SSE decoding to lenient UTF-8; agent ping now succeeds.

🔄[human]InProgress → Done1 month ago