MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / reloadSession

Method reloadSession

packages/node-sdk/src/session.ts:74–83  ·  view source on GitHub ↗
(options?: ReloadSessionOptions)

Source from the content-addressed store, hash-verified

72 }
73
74 async reloadSession(options?: ReloadSessionOptions): Promise<ResumedSessionSummary> {
75 this.ensureOpen();
76 const summary = await this.rpc.reloadSession({
77 sessionId: this.id,
78 forcePluginSessionStartReminder: options?.forcePluginSessionStartReminder,
79 });
80 this.summary = summary;
81 this.resumeState = resumeStateFromSummary(summary);
82 return summary;
83 }
84
85 onEvent(listener: (event: Event) => void): Unsubscribe {
86 this.ensureOpen();

Callers 4

config.test.tsFile · 0.45
reloadSessionFunction · 0.45
handleReloadCommandFunction · 0.45

Calls 2

ensureOpenMethod · 0.95
resumeStateFromSummaryFunction · 0.85

Tested by

no test coverage detected