()
| 276 | } |
| 277 | |
| 278 | const canUseTool: CanUseToolFn = async () => ({ |
| 279 | ...permissionResult, |
| 280 | decisionReason: { |
| 281 | type: 'mode', |
| 282 | mode: 'default' as const, |
| 283 | }, |
| 284 | }) |
| 285 | |
| 286 | // Add the assistant message with tool_use to messages BEFORE executing |
| 287 | // so the conversation history is complete (tool_use -> tool_result). |
nothing calls this directly
no outgoing calls
no test coverage detected