( sessionId: string, timeoutMs: number, logger: BridgeLogger, timedOutSessions: Set<string>, handle: SessionHandle, )
| 1693 | } |
| 1694 | |
| 1695 | function onSessionTimeout( |
| 1696 | sessionId: string, |
| 1697 | timeoutMs: number, |
| 1698 | logger: BridgeLogger, |
| 1699 | timedOutSessions: Set<string>, |
| 1700 | handle: SessionHandle, |
| 1701 | ): void { |
| 1702 | logForDebugging( |
| 1703 | `[bridge:session] sessionId=${sessionId} timed out after ${formatDuration(timeoutMs)}`, |
| 1704 | ) |
| 1705 | logEvent('ncode_bridge_session_timeout', { |
| 1706 | timeout_ms: timeoutMs, |
| 1707 | }) |
| 1708 | logger.logSessionFailed( |
| 1709 | sessionId, |
| 1710 | `Session timed out after ${formatDuration(timeoutMs)}`, |
| 1711 | ) |
| 1712 | timedOutSessions.add(sessionId) |
| 1713 | handle.kill() |
| 1714 | } |
| 1715 | |
| 1716 | export type ParsedArgs = { |
| 1717 | verbose: boolean |
nothing calls this directly
no test coverage detected