codex/codex-rs/code-mode-host/tests
Jennifer Zhao 806d9732c9 Report exec runtime resets before accepting further requests (#52825)
## Why

Replacing a gRPC code-mode runtime loses stored values and running cells. Silently continuing after reconnection hides that loss, while prior external tool operations may already have completed.

## What changed

- Capture the runtime generation when `execute` and `wait` calls are created. If recovery replaces it, reject those calls with an explicit reset error, including concurrent calls and calls first polled after recovery.
- Explain the lost state and advise inspecting prior tool results before retrying. Allow a fresh `exec` call to continue on the replacement runtime.
- Keep `terminate` from reopening the runtime so cleanup cannot hide a reset from the next request.

## Testing

Extend gRPC recovery tests to cover reset errors after host restarts, missing sessions, and route loss, rejection of queued calls, and successful fresh execution with cleared stored state.

GitOrigin-RevId: 914cab3bb45e30a3f3b2afacb5631e42b18e21b0
History 2026-10-10 08:51:21 +00:00
..
grpc Report exec runtime resets before accepting further requests (#52825) 2026-10-10 08:51:21 +00:00
support Forward gRPC code-mode callbacks to session delegates (#38072) 2026-08-11 20:40:26 +00:00
grpc.rs Report exec runtime resets before accepting further requests (#52825) 2026-10-10 08:51:21 +00:00
grpc_notifications.rs Add early yielding for code-mode observations (#48123) 2026-09-25 15:42:35 +00:00
grpc_tcp.rs Add a health endpoint to the code-mode gRPC listener (#38806) 2026-08-15 21:26:28 +00:00
grpc_timing.rs Add early yielding for code-mode observations (#48123) 2026-09-25 15:42:35 +00:00
settled.rs Add promise settlement streaming helpers to code mode (#51126) 2026-10-05 16:58:29 +00:00
stdio.rs Use descriptor-safe helpers for executable test fixtures (#50018) 2026-10-01 15:57:03 +00:00