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

Method resetSessionRuntime

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

Source from the content-addressed store, hash-verified

1562 }
1563
1564 resetSessionRuntime(): void {
1565 this.aborted = false;
1566 this.streamingUI.discardPending();
1567 this.state.queuedMessages = [];
1568 this.state.swarmModeEntry = undefined;
1569 this.streamingUI.resetToolCallState();
1570 this.streamingUI.resetToolUi();
1571 this.sessionEventHandler.resetRuntimeState();
1572 this.tasksBrowserController.close();
1573 this.btwPanelController.clear();
1574 this.state.footer.setBackgroundCounts({ bashTasks: 0, agentTasks: 0 });
1575 this.streamingUI.setTodoList([]);
1576 this.streamingUI.setTurnId(undefined);
1577 this.setAppState({ mcpServersSummary: null });
1578 this.streamingUI.setStep(0);
1579 this.streamingUI.resetLiveText();
1580 this.updateQueueDisplay();
1581 }
1582
1583 private async showResumeOtherWorkDirHint(session: SessionRow): Promise<void> {
1584 this.hideSessionPicker();

Callers 3

switchToSessionMethod · 0.95
createNewSessionMethod · 0.95

Calls 13

setAppStateMethod · 0.95
updateQueueDisplayMethod · 0.95
discardPendingMethod · 0.80
resetToolCallStateMethod · 0.80
resetToolUiMethod · 0.80
setBackgroundCountsMethod · 0.80
setTodoListMethod · 0.80
setTurnIdMethod · 0.80
setStepMethod · 0.80
resetLiveTextMethod · 0.80
closeMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected