Under the hood
New internal helpers detect unfinished tool calls at the end of a conversation
What
Claude Code gained new internal helper functions for scanning a conversation transcript: one finds the last user or assistant message, one walks backward through the transcript to detect an assistant tool call that never got a matching result (meaning it's still in-flight or unresolved), and one finds the last assistant message that used a tool.
Why
Being able to detect an unresolved tool call at the end of a transcript helps Claude Code handle cases where a tool was invoked but never finished, rather than treating the conversation as cleanly complete.