(event: AgentEvent)
| 306 | const pendingFiles: Array<{ filePath: string; caption?: string }> = []; |
| 307 | const placeholder = await this.sendPlaceholderMessage(client, route); |
| 308 | |
| 309 | const onEvent = (event: AgentEvent) => { |
| 310 | if (event.type === "text_delta") { |
| 311 | finalText += event.delta; |
| 312 | } else if (event.type === "file_output") { |
| 313 | pendingFiles.push({ |
| 314 | filePath: event.filePath, |
| 315 | caption: event.caption, |
| 316 | }); |
| 317 | } |
| 318 | this.ipcBroadcaster?.broadcastAgentEvent(channelId, event); |
| 319 | }; |
| 320 | |
| 321 | try { |
nothing calls this directly
no test coverage detected