Files
codex/codex-rs
Ben Romano ce1c27aa01 Link accepted steer requests to active turn spans (#65315)
## Why

A steer request can arrive in a separate trace from the turn it updates. Recording the turn ID on the input span leaves the relationship implicit in OpenTelemetry.

## What changed

Capture the context of `session_task.turn` when the task starts. When the active turn accepts steering input, add an OpenTelemetry link from the request's `op.dispatch.turn_input` span to the task span. The link is visible even when trace-level input spans are disabled.

## Testing

Extend the turn tracing integration test to check that both steering entry points link to the active task and that initial submissions and stale steer requests emit no link.

GitOrigin-RevId: 1daecd06d8db8a80c8112dff5c65a58142bda4d6
2026-12-02 18:54:34 +00:00
..
…
…
…
…