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

Method requireSession

apps/kimi-code/src/tui/kimi-tui.ts:1408–1413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1406 // =========================================================================
1407
1408 requireSession(): Session {
1409 if (this.session === undefined) {
1410 throw new Error(NO_ACTIVE_SESSION_MESSAGE);
1411 }
1412 return this.session;
1413 }
1414
1415 private async createSessionFromCurrentState(): Promise<Session> {
1416 const model = this.state.appState.model.trim();

Callers 4

finishStartupMethod · 0.95
syncRuntimeStateMethod · 0.95
activateRuntimeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected