Internal cleanup consolidates the MCP tool-call awaiting-user-input logic into one shared function, with no user-visible behavior change
What
The code that handles an MCP (Model Context Protocol) tool call that is waiting on user input was restructured. The onAwaitingUserInput callback, which starts and stops a background-eligibility timer while a tool call is paused waiting for the user, used to be written inline for each call path. It is now pulled out into a single standalone function that both the retry path and the pending-elicitation background-task path reuse. Several internal helper names were also renamed as part of the cleanup.
Why
This is an internal code-quality change with no identified effect on behavior; it just reduces duplication in how Claude Code tracks tool calls that are waiting on user input.
Whether this refactor has any subtle behavioral effect beyond code reorganization is not established by the evidence.