Skip to content

Add native file search, Code Interpreter, and image tools - #5576

Merged
markstuart-oai merged 3 commits into
feat/codex-harnessfrom
markstuart/native-hosted-tools
Nov 7, 2026
Merged

markstuart-oai merged 3 commits into
feat/codex-harnessfrom
markstuart/native-hosted-tools

Conversation

@markstuart-oai

@markstuart-oai markstuart-oai commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This pull request adds FileSearch, CodeInterpreter, and ImageGeneration to native sessions. Core sends their declarations through the Responses loop and retains the provider's results. Sessions capture the configuration when they open; later tool selections can retain or omit those grants.

Expose typed file search, code, and image results through history, including citations and raw provider fields. Preserve final items through restore, and deliver code progress and partial images through bounded observations. Child sessions inherit the selected grants. Responses containing only hosted tool results can complete without assistant text. Completion callbacks can continue the same turn while preserving those results.

Include examples and an updated API snapshot for the added native exports. The user guide is in the separate docs PR #5578. Existing release metadata stays unchanged.

Test plan

  • The full verification wrapper passed: formatting, lint, type checks, 5,257 parallel tests, and 53 serial tests. The parallel run skipped 182 tests.
  • Native fixture tests cover requests, results, restore, child execution, image editing, progress overflow, errors, cancellation, and completion callbacks.
  • Added regression coverage for pooled connections across fresh sessions, captured tool configuration, large image previews, cancellation isolation, and completed image results followed by provider failure.
  • Installed-wheel checks passed on Python 3.10 and 3.13. Python 3.10 also passed cancellation and session reuse checks.
  • The docs build and public API contract checks passed. Final verification left the reviewed files unchanged.

The local run used the standard Codex sandbox exclusions and NODE_NO_WARNINGS=1 for this host's injected Node proxy warning. Live provider calls and the excluded platform sandbox checks were not run.

Issue number

None.

Checks

  • I've added new tests, if relevant
  • I've run the applicable checks in AGENTS.md, including .agents/skills/code-change-verification/scripts/run.sh when required
  • I've confirmed all required checks pass
  • I've completed the review required by AGENTS.md

@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners November 7, 2026 05:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T06:20:05.798539Z 6943280 New commits
🔒 Security Review ✅ Completed 2026-11-07T06:21:22.224860Z 6943280 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca3ba27c44

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/sdk/tools.md Resolved

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the existing documentation-timing finding: #5576 (comment) . AGENTS.md explicitly requires docs/ content for unreleased behavior to be a separately timed docs-only change. Remove this new docs/sdk/tools.md section from the feature PR and retain the accompanying examples. This is a P2 delivery-policy correction, not a P1 runtime defect.

Coordinator and independent static review found no additional actionable code defects across the shared Core patch, hosted tool configuration, provider payload/history/restore preservation, child sessions, progress buffering, cancellation and completion continuation. Hosted native-platform CI and Rust CodeQL remain pending. No candidate code or tests executed.

@markstuart-oai
markstuart-oai force-pushed the markstuart/native-hosted-tools branch from ca3ba27 to 6943280 Compare November 7, 2026 06:18
@markstuart-oai markstuart-oai mentioned this pull request Nov 7, 2026
3 tasks done

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation blocker is resolved: the unreleased guide section is removed from this feature PR. The rebased production feature patch is equivalent apart from patch numbering/series baselines; the hosted Core patch checksum is unchanged. Reviewed the new integration coverage for captured configuration, provider transport reuse and session isolation, large previews, cancellation/recovery, and completed hosted results preceding provider failure.

Coordinator and independent static re-review found no actionable source findings. No candidate code or tests executed locally. Current-head platform CI and CodeQL remain pending. This approval does not establish resolution of the previous macOS child.turn failure: retain the merge/release hold until a clean current-head macOS run and remaining validation complete.

@markstuart-oai
markstuart-oai merged commit 69a22b4 into feat/codex-harness Nov 7, 2026
15 checks passed
@markstuart-oai
markstuart-oai deleted the markstuart/native-hosted-tools branch November 7, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants