Skip to content

Recover executed tool call metadata under recorder capacity pressure - #46712

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8894d1283a962088fbf8cad60078cc0cd07aaf17
Sep 19, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Recover executed tool call metadata under recorder capacity pressure

Why

Orphaned output mappings and pending calls from finished cells can exhaust recorder capacity, preventing fresh code mode calls from attaching complete executed tool call metadata.

What changed

Reclaim output mappings without remaining cells when the mapping limit is reached. Under cell or pending-call pressure, evict finished cells without output mappings, invalidate their retained completion markers, and release their pending-call count. Preserve the cell being registered and keep late records until capacity pressure requires cleanup.

Testing

Add regression coverage for preserving existing cells and late partial records under mapping pressure, and an integration test verifying that a fresh code mode call carries its executed calls, cell ID, and completion marker after orphaned mappings fill the recorder.

…46712)

## Why

Orphaned output mappings and pending calls from finished cells can exhaust recorder capacity, preventing fresh code mode calls from attaching complete executed tool call metadata.

## What changed

Reclaim output mappings without remaining cells when the mapping limit is reached. Under cell or pending-call pressure, evict finished cells without output mappings, invalidate their retained completion markers, and release their pending-call count. Preserve the cell being registered and keep late records until capacity pressure requires cleanup.

## Testing

Add regression coverage for preserving existing cells and late partial records under mapping pressure, and an integration test verifying that a fresh code mode call carries its executed calls, cell ID, and completion marker after orphaned mappings fill the recorder.

GitOrigin-RevId: 8894d1283a962088fbf8cad60078cc0cd07aaf17
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8894d1283a962088fbf8cad60078cc0cd07aaf17 branch from 12a7c8b to ed0ee70 Compare September 19, 2026 20:31
@copyberry
copyberry Bot merged commit ed0ee70 into main Sep 19, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8894d1283a962088fbf8cad60078cc0cd07aaf17 branch September 19, 2026 20:31
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026

This branch was successfully deployed

1 active deployment
issue-triage — ed0ee704 Deployed Sep 19, 2026 by c4r0lklein-hub via Identify potential duplicates (all issues) #46831
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.

2 participants