420429df9c
- Previously only stripped dangling tool_use blocks from the trailing assistant turn; now scans all assistant turns on the resolved path. - Builds a set of paired tool result IDs upfront to identify dangling calls anywhere in the message list. - Adds a test covering a mid-path dangling turn alongside a correctly paired turn that must be preserved.