Files
codex/codex-rs/code-mode
pakrym-oai 1b025cba72 Add grace period to code-mode yield timeouts (#33867)
## Why

Nested tool calls can finish just after a long code-mode yield deadline, causing
an `exec` or `wait` response to yield instead of returning the completed result.

## What changed

- Add a one-second grace period to `exec` and `wait` yield timeouts of at least
  ten seconds.
- Preserve the exact requested timeout for shorter yields.

## Testing

Add paused-time coverage for the timeout threshold and for nested tools that
complete during the grace period in both `exec` and `wait`.

GitOrigin-RevId: 403f587e07e2cde88c86424e46b0eff96ac8c409
2026-07-17 16:24:31 +00:00
..
2026-03-20 23:36:58 -07:00