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

Method onSessionId

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

* Register a handler invoked when Claude reports its session id (via the * `system/init` event). Use this to persist the id and pass it back as * `resumeSessionId` on the next spawn.

(handler: (sessionId: string) => void)

Source from the content-addressed store, hash-verified

90 * `resumeSessionId` on the next spawn.
91 */
92 onSessionId(handler: (sessionId: string) => void): void;
93 /** Register a handler for process exit */
94 onExit(handler: (code: number) => void): void;
95 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected