mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## 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