Files
codex/codex-rs
Charlie Marsh e0241d4fae Defer code-mode tool catalog construction until first access (#61845)
## Why

Each cell eagerly built `tools` and `ALL_TOOLS`, even when its code never accessed them.

## What changed

- Initialize each catalog global lazily on its first read, preserving writable values and mutations within each cell.
- Normalize tool metadata at the service boundary and share it through an `Arc`-backed catalog instead of repeatedly converting it between runtime layers.
- Construct catalog properties without invoking inherited setters.

## Testing

Add regression tests for cell-local catalog mutations, fresh catalogs across cells, and catalog construction with inherited setters on `Object.prototype` and `Array.prototype`.

GitOrigin-RevId: 04695c24ff33d3b3a4335558e9c754844f04e9f0
2026-11-16 17:46:42 +00:00
..
…
…
…
…