Skip to content

Use captured step settings for tool planning and execution - #44242

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ef991598e89a846889baf770a0c9e12e56886d5d
Sep 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ef991598e89a846889baf770a0c9e12e56886d5d

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Use captured step settings for tool planning and execution

Why

After a model change within a turn, tools could still use the turn's original model capabilities, output limits, and telemetry attribution.

What changed

  • Build each step's tool plan from its captured model settings.
  • Use those settings for image support and detail, command and MCP output truncation, extension metadata, and tool telemetry.
  • Preserve the issuing step's model for delayed command completion events while allowing later write_stdin calls to use their own step's output limits.

Testing

Add regression coverage for model changes within a turn, including tool replanning, Code Mode execution, image handling, MCP tool and resource output limits, extension settings, and delayed command completion.

## Why

After a model change within a turn, tools could still use the turn's original model capabilities, output limits, and telemetry attribution.

## What changed

- Build each step's tool plan from its captured model settings.
- Use those settings for image support and detail, command and MCP output truncation, extension metadata, and tool telemetry.
- Preserve the issuing step's model for delayed command completion events while allowing later `write_stdin` calls to use their own step's output limits.

## Testing

Add regression coverage for model changes within a turn, including tool replanning, Code Mode execution, image handling, MCP tool and resource output limits, extension settings, and delayed command completion.

GitOrigin-RevId: ef991598e89a846889baf770a0c9e12e56886d5d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ef991598e89a846889baf770a0c9e12e56886d5d branch from 2fbf3ff to 205f367 Compare September 9, 2026 17:45
@copyberry
copyberry Bot merged commit 205f367 into main Sep 9, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ef991598e89a846889baf770a0c9e12e56886d5d branch September 9, 2026 17:45
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant