Skip to content

Support multi-env filesystem tools#20530

Open
starr-openai wants to merge 3 commits intoprocess-tools-stage2-envctx-envctx-gated-v1-mediumfrom
starr/process-tools-remaining-env-tools-20260430
Open

Support multi-env filesystem tools#20530
starr-openai wants to merge 3 commits intoprocess-tools-stage2-envctx-envctx-gated-v1-mediumfrom
starr/process-tools-remaining-env-tools-20260430

Conversation

@starr-openai
Copy link
Copy Markdown
Contributor

Summary

  • add environment_id schema support for function-shaped apply_patch, list_dir, and view_image when multiple environments are selected
  • route those handlers through the selected turn environment/cwd and remote filesystem sandbox context
  • keep freeform apply_patch on the primary environment because that payload has no JSON field for environment selection

Stacked on #20314.

Testing

  • Not run locally per Codex checkout guidance; formatted touched Rust files only.

starr-openai and others added 2 commits April 30, 2026 15:44
Co-authored-by: Codex <noreply@openai.com>
Keep the legacy single-environment surface unchanged, expose environment_id only when multiple turn environments are selected, and add coverage plus a probe for the multi-environment model surface.

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai requested a review from a team as a code owner April 30, 2026 23:42
Add environment selection to the remaining environment-backed filesystem tools. apply_patch, list_dir, and view_image now route through the selected turn environment when an environment_id is provided, while preserving primary-environment fallback.

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai force-pushed the starr/process-tools-remaining-env-tools-20260430 branch from bb86a00 to b12b789 Compare May 1, 2026 01:56
@starr-openai starr-openai force-pushed the process-tools-stage2-envctx-envctx-gated-v1-medium branch 5 times, most recently from 1160244 to 22eef90 Compare May 1, 2026 02:16
@starr-openai starr-openai force-pushed the process-tools-stage2-envctx-envctx-gated-v1-medium branch 12 times, most recently from 0af9dc8 to 10c03f9 Compare May 1, 2026 04:35
Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 1, 2026
…ini-cli)

- openai/codex#20564 — Enforce animations=false for screen readers (merge-as-is)
- openai/codex#20530 — Support multi-env filesystem tools (merge-after-nits)
- BerriAI/litellm#26956 — Fix MCP semantic filter native tool passthrough (merge-after-nits)
- google-gemini/gemini-cli#26277 — docs(sdk): add JSDoc to all exports (merge-as-is)
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.

1 participant