( sessionId: string, timeoutMs: number, logger: BridgeLogger, timedOutSessions: Set<string>, handle: SessionHandle, )
| 1676 | } |
| 1677 | |
| 1678 | function onSessionTimeout( |
| 1679 | sessionId: string, |
| 1680 | timeoutMs: number, |
| 1681 | logger: BridgeLogger, |
| 1682 | timedOutSessions: Set<string>, |
| 1683 | handle: SessionHandle, |
| 1684 | ): void { |
| 1685 | logForDebugging( |
| 1686 | `[bridge:session] sessionId=${sessionId} timed out after ${formatDuration(timeoutMs)}`, |
| 1687 | ) |
| 1688 | logEvent('tengu_bridge_session_timeout', { |
| 1689 | timeout_ms: timeoutMs, |
| 1690 | }) |
| 1691 | logger.logSessionFailed( |
| 1692 | sessionId, |
| 1693 | `Session timed out after ${formatDuration(timeoutMs)}`, |
| 1694 | ) |
| 1695 | timedOutSessions.add(sessionId) |
| 1696 | handle.kill() |
| 1697 | } |
| 1698 | |
| 1699 | export type ParsedArgs = { |
| 1700 | verbose: boolean |
nothing calls this directly
no test coverage detected