Skip to content

Retain attempted tool metadata across prompts - #36507

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1c23a26123be3b7ad51c61f4ad522139b71bb773
Aug 1, 2026
Merged

Retain attempted tool metadata across prompts#36507
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1c23a26123be3b7ad51c61f4ad522139b71bb773

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 1, 2026

Copy link
Copy Markdown

Retain attempted tool metadata across prompts

What changed

  • Reattach recorded executed_tool_calls metadata when an output is included in a subsequent prompt.
  • Bound retained metadata to 32 KiB, prioritizing recent calls and reporting omitted calls in truncation metadata.
  • Drop retained entries after their corresponding outputs leave the prompt history.

Testing

  • Cover metadata replay, cleanup after compaction, bounded retained history, and propagation through later tool requests.
## What changed

- Reattach recorded `executed_tool_calls` metadata when an output is included in a subsequent prompt.
- Bound retained metadata to 32 KiB, prioritizing recent calls and reporting omitted calls in truncation metadata.
- Drop retained entries after their corresponding outputs leave the prompt history.

## Testing

- Cover metadata replay, cleanup after compaction, bounded retained history, and propagation through later tool requests.

GitOrigin-RevId: 1c23a26123be3b7ad51c61f4ad522139b71bb773
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1c23a26123be3b7ad51c61f4ad522139b71bb773 branch from b9c1789 to a1dd74b Compare August 1, 2026 17:37
@copyberry
copyberry Bot merged commit a1dd74b into main Aug 1, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1c23a26123be3b7ad51c61f4ad522139b71bb773 branch August 1, 2026 17:38
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants