mirror of
https://github.com/openai/codex.git
synced 2026-08-24 13:20:07 +00:00
## What changed - Subscribe each gRPC code-mode session to nested tool calls and forward tool and notification callbacks to its delegate. - Complete tool calls through the host while bounding oversized results and errors. - Track callback ownership and cancellation so completed cells drain notifications, terminated cells cancel them, and shutdown revokes outstanding work. - Validate callback identifiers, cell ownership, enabled tools, and pending callback limits without serializing independent callbacks or sessions. ## Testing - Add integration and state tests for callback forwarding, completion ordering, cancellation, malformed callbacks, delegate panics, oversized results, and concurrent work. GitOrigin-RevId: 005afbb90eea0eb77d746b930a1a96ca6dfcd4e7