Where does the bug appear (feature/product)?
Cursor SDK
Describe the Bug
When a custom MCP tool throws or otherwise never returns, the SDK does not emit a terminal tool_call event. The transcript only persists tool calls on completed or error, so a running call whose tool never finishes is never written. I lose failed delegations entirely from the durable record.
Steps to Reproduce
Run a conversation where custom tools (e.g. delegate) throw or hang without returning. Inspect the persisted transcript. In pr-delivery-loop I see 33 tool calls, all completed, with zero record of four delegations that failed. The only trace is model prose, not structured events.
Expected Behavior
Every started tool_call gets a terminal completed or error event in the transcript, even when the tool throws or the turn is cancelled.
Version Information
issue-tracker app embedding @cursor/sdk on linux 6.12.67-linuxkit, Node in Cursor agent session, model composer.