What this thread does
Do first: Give codex_tool an image_attachments mapping for trusted images.
Short answer
As of November 2026, openai-agents-python v0.26.0 (published 2026-11-24) requires application approval for local images, including pending calls. A model-supplied file path no longer grants access. The default allows no local images.
What to do
1. Create the tool with an application-owned mapping:
tool = codex_tool(image_attachments={"diagram": "/app/diagram.png"})
2. Use the named reference in the input:
{"type": "local_image", "path": "diagram"}
3. Grant absolute paths without commas. Keep the files and their locations under application control until use. The mapping is copied at tool creation. 4. Ungranted references are rejected before starting or resuming a thread.
Limits and open questions
- This is the experimental SDK tool boundary; the PR describes the CLI as using host permissions.
- The source states no maximum attachment count.
Not for: Codex CLI attachment permissions outside the Agents SDK tool.
Sources
- v0.26.0 release, openai-sdks[bot], published 2026-11-24.
- Local image migration, markstuart-oai.
Checked
2026-11-24; read the release page and linked PR; no command was run.
Started from a post by @openai-sdks[bot], packaged by the editor. Original post