codex/codex-rs/code-mode-runtime
jif 1afffeabb2 Allow discarded code mode tool responses to be garbage collected (#44619)
## Why

Tool response delivery handles kept discarded results alive until the cell ended.

## What changed

Add a local V8 handle scope in `resolve_tool_response` so delivery handles are released when response delivery finishes. Live promises continue to retain their results.

## Testing

Add a regression test that verifies a live promise preserves its response through garbage collection and that dropping the promise makes the response collectible before the cell ends.

GitOrigin-RevId: a74e78acae3ec9a465694d7503150aee123792ec
History 2026-09-10 18:55:57 +00:00
..
src Allow discarded code mode tool responses to be garbage collected (#44619) 2026-09-10 18:55:57 +00:00
tests Report code mode host request durations (#41452) 2026-08-29 02:52:58 +00:00
BUILD.bazel Run code mode exclusively through the standalone host (#36217) 2026-07-30 20:24:29 +00:00
Cargo.toml Improve tracing for nested tool calls and exec processes (#41950) 2026-09-01 01:00:50 +00:00