Files
codex/codex-rs/core/src
Alex Kira 704ffed1c5 Refresh the Code Mode exec catalog when helper signatures change (#63046)
## Why

Incremental updates to nested tools can leave the model with a stale
`functions.exec` declaration when a global helper changes. For example,
resuming a session with unified image budgeting can change the advertised
signature of `image`.

## What changed

Track the signatures of global helpers supplied by the description renderer
and redeclare the full `functions.exec` catalog when they change, including
when an override removes those helpers. Send the configured incremental
tools hint once before the first namespace declaration in an update,
including updates that only redeclare `functions.exec`.

## Testing

Cover helper removal and session resume with bundled helpers, an
`{{ image_helper }}` override, and a helper-free override. Verify that a
changed signature triggers one refresh and subsequent turns reuse the
refreshed declaration.

GitOrigin-RevId: a1c216879be8eb5b331485984c86bf872b0b7a17
2026-11-21 21:40:05 +00:00
..
…
…
…