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

Method closeSession

apps/kimi-code/src/tui/kimi-tui.ts:1501–1504  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

1499 }
1500
1501 async closeSession(reason: string): Promise<void> {
1502 const previous = this.unloadCurrentSession(reason);
1503 await previous?.close();
1504 }
1505
1506 private unloadCurrentSession(reason: string): Session | undefined {
1507 const previous = this.session;

Callers 1

stopMethod · 0.95

Calls 2

unloadCurrentSessionMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected