(
host: HostConnection,
message: Extract<RuntimeHostToMainMessage, { type: 'desktop-event' }>,
)
| 208 | } |
| 209 | |
| 210 | function handleHostDesktopEventMessage( |
| 211 | host: HostConnection, |
| 212 | message: Extract<RuntimeHostToMainMessage, { type: 'desktop-event' }>, |
| 213 | ) { |
| 214 | if (message.event.type === 'thread-update') { |
| 215 | rememberHostAlias(host, message.event.sessionPath) |
| 216 | host.busy = message.event.thread.isStreaming || message.event.thread.isCompacting |
| 217 | if (host.busy) clearHostIdleTimer(host) |
| 218 | else scheduleThreadHostIdleStop(host) |
| 219 | } |
| 220 | emitDesktopEvent(message.event) |
| 221 | } |
| 222 | |
| 223 | function getHostSendOutcome(message: Extract<RuntimeHostToMainMessage, { type: 'response' }>) { |
| 224 | return message.ok && |
no test coverage detected