Turn-duration tracking now holds off recording while a detached background tool call is still pending
Claude Code records how long each conversation turn takes. Now, when a turn ends but a detached tool call (a task or agent running in the background) is still queued or in progress, Claude Code holds off on recording the turn's duration instead of recording it right away. Once the background work finishes, it recomputes the duration and related background-wait counts, then writes the updated duration into the transcript.
This keeps recorded turn durations from being cut short by background tasks that are still running, so the timing shown reflects when the work actually finished rather than when the main turn technically ended.