MCPcopy Create free account
hub / github.com/chekusu/wanman / onExit

Method onExit

packages/runtime/src/claude-code.ts:94–94  ·  view source on GitHub ↗

Register a handler for process exit

(handler: (code: number) => void)

Source from the content-addressed store, hash-verified

92 onSessionId(handler: (sessionId: string) => void): void;
93 /** Register a handler for process exit */
94 onExit(handler: (code: number) => void): void;
95 /**
96 * True iff Claude refused to resume the requested `resumeSessionId`
97 * (i.e. the session was not found locally). Callers can check this after

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected