Unclear It is unclear whether these timings are sent anywhere or only kept locally.
What
Claude Code times each turn in named phases so the time before a request goes out can be broken down. The list of phases used to end at client_creation. It now adds:
tool_pool_refresh,model_gatesandrequest_build.- Four retry phases:
redrive_reactive_compact,redrive_fallback_model,redrive_non_streamingandredrive_other. A redrive is a request sent again after the first attempt. A newnoteRedriverecords it, and the time after the first send goes intoredrive_<cause>, orredrive_otherwhen the cause has no name of its own. - The documentation for
time_to_request_phases_mslists the new phases.
Result messages, sent at the end of a turn, also gain two fields. Both are marked internal and appear only together with request_sent_wall_ms:
first_request_input_tokens: the first request's input tokens plus cache-read and cache-creation tokens.user_message_server_received_wall_ms: when the server received the user's message.
The SDK's process transport, the part that starts Claude Code as a separate program, now calls options.onProcessSpawned(pid) once that program has started.
Why
This is timing data for programs that host Claude Code sessions, with no visible effect in normal use. It shows more precisely where the time before a response goes, including time lost to retries.
It is unclear whether these timings are sent anywhere or only kept locally.