()
| 286 | }; |
| 287 | |
| 288 | const showCurrentOutput = () => { |
| 289 | if (!context?.toolCallId) return; |
| 290 | try { |
| 291 | const currentOutput = stdout + (stderr ? `\nStderr: ${stderr}` : ""); |
| 292 | services.chatHistory.addToolResult( |
| 293 | context.toolCallId, |
| 294 | currentOutput, |
| 295 | "calling", |
| 296 | ); |
| 297 | } catch { |
| 298 | // Ignore errors during streaming updates |
| 299 | } |
| 300 | }; |
| 301 | |
| 302 | // Start the initial timeout |
| 303 | resetTimeout(); |
no test coverage detected