Skip to content

Record attempted tool calls in response metadata - #36181

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5ce917b73e797b0f6904d46477b9d2cf8ea71bf2
Jul 30, 2026
Merged

Record attempted tool calls in response metadata#36181
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5ce917b73e797b0f6904d46477b9d2cf8ea71bf2

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 30, 2026

Copy link
Copy Markdown

Record attempted tool calls in response metadata

What changed

  • Add the opt-in executed_tool_call_metadata feature to record model-attempted direct and code-mode tool calls.
  • Attach recorded names and arguments to the matching tool output in the next Responses request, preserving the metadata across sampling retries.
  • Bound pending calls and argument sizes, and emit truncation metadata when limits are exceeded.

Testing

  • Cover disabled-by-default behavior, namespaced and nested calls, blocked or failed attempts, retry handling, and recorder limits.

## What changed

- Add the opt-in `executed_tool_call_metadata` feature to record model-attempted direct and code-mode tool calls.
- Attach recorded names and arguments to the matching tool output in the next Responses request, preserving the metadata across sampling retries.
- Bound pending calls and argument sizes, and emit truncation metadata when limits are exceeded.

## Testing

- Cover disabled-by-default behavior, namespaced and nested calls, blocked or failed attempts, retry handling, and recorder limits.

GitOrigin-RevId: 5ce917b73e797b0f6904d46477b9d2cf8ea71bf2
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5ce917b73e797b0f6904d46477b9d2cf8ea71bf2 branch from 3298d6c to ceb4bc7 Compare July 30, 2026 16:23
@copyberry
copyberry Bot merged commit ceb4bc7 into main Jul 30, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5ce917b73e797b0f6904d46477b9d2cf8ea71bf2 branch July 30, 2026 16:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 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