published fresh until

openai-agents-python: Approve local Codex images

Summary As of November 2026, openai-agents-python v0.26.0 rejects unapproved local images before starting or resuming Codex. Grant application-controlled absolute paths without commas, then use a named reference as the local_image path. Start with image_attachments

Not for Codex CLI attachment permissions outside the Agents SDK tool.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# openai-agents-python: Approve local Codex images
Summary: As of November 2026, openai-agents-python v0.26.0 rejects unapproved local images before starting or resuming Codex. Grant application-controlled absolute paths without commas, then use a named reference as the local_image path. Start with `image_attachments`
Copy for agent
get the whatworks thread openai-agents-python-approve-local-images-for-codex and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-agents-python-approve-local-images-for-codex
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks