MCPcopy Create free account
hub / github.com/tiann/hapi / reportTranscriptSyncFailure

Function reportTranscriptSyncFailure

cli/src/codex/codexLocalLauncher.ts:36–44  ·  view source on GitHub ↗
(transcriptPath: string, error: unknown)

Source from the content-addressed store, hash-verified

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) {

Callers 1

handleTranscriptPathFunction · 0.85

Calls 2

warnMethod · 0.80
sendSessionEventMethod · 0.80

Tested by

no test coverage detected