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