Files
codex/codex-rs
taohong-oai 082900149c Add a critical-path timing recorder for direct tool calls (#56008)
## What changed

Add the `codex-direct-tool-timing` crate to record tool execution, automated reviews, human waits, and dependency paths. Human waits take precedence over overlapping reviews, and dependency waits with unavailable history are recorded as unknown time.

Invocation guards complete each call once, explicitly or on drop. Separate invocation identities prevent late review or wait guards from affecting calls that reuse an ID; duplicate active IDs disable ambiguous path attribution. Batch timing exposes the last-finishing invocation's path once all calls complete.

## Testing

Add unit tests for parallel batch completion, duplicate and reused call IDs, cancellation, missing dependency history, overlapping reviews and human waits, and nested wait guards.

GitOrigin-RevId: 8b251f51a0c52342657f2d244524b562a371bd8e
2026-10-21 22:49:54 +00:00
..
…
…
…
…