Function
isOrphanedInterruptedTool
(part: SessionV1.ToolPart)
Source from the content-addressed store, hash-verified
| 94 | } |
| 95 | |
| 96 | function isOrphanedInterruptedTool(part: SessionV1.ToolPart) { |
| 97 | // cleanup() marks abandoned tool_use blocks this way after retries/aborts. |
| 98 | // They are not pending work and must not trigger an assistant-prefill request. |
| 99 | return part.state.status === "error" && part.state.metadata?.interrupted === true |
| 100 | } |
| 101 | |
| 102 | export interface Interface { |
| 103 | readonly cancel: (sessionID: SessionID) => Effect.Effect<void> |
Tested by
no test coverage detected