(transcriptPath: string, error: unknown)
| 34 | logger.debug(`[codex-local]: Started hapi MCP bridge server at ${happyServer.url}`); |
| 35 | |
| 36 | const reportTranscriptSyncFailure = (transcriptPath: string, error: unknown): void => { |
| 37 | const detail = error instanceof Error ? error.message : String(error); |
| 38 | const message = `Codex transcript sync failed for ${transcriptPath}: ${detail}`; |
| 39 | logger.warn(`[codex-local]: ${message}`); |
| 40 | session.sendSessionEvent({ |
| 41 | type: 'message', |
| 42 | message: `${message} Keeping local Codex running; remote transcript sync is unavailable for this launch.` |
| 43 | }); |
| 44 | }; |
| 45 | |
| 46 | const handleSessionFound = (sessionId: string, allowSwitch = false): void => { |
| 47 | if (primarySessionId && primarySessionId !== sessionId && !allowSwitch) { |
no test coverage detected