()
| 61 | let currentToolUseContext: ToolUseContext | undefined; |
| 62 | |
| 63 | function tuc(): ToolUseContext { |
| 64 | // Safe: `binding` is only populated when `currentToolUseContext` is set. |
| 65 | // Called only from within `ctx` callbacks, which only fire during dispatch. |
| 66 | return currentToolUseContext!; |
| 67 | } |
| 68 | |
| 69 | function formatLockHeld(holder: string): string { |
| 70 | return `Computer use is in use by another Claude session (${holder.slice(0, 8)}…). Wait for that session to finish or run /exit there.`; |
no outgoing calls
no test coverage detected