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

Method initMainTui

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

Source from the content-addressed store, hash-verified

552 }
553
554 private async initMainTui(): Promise<boolean> {
555 const shouldReplayHistory = await this.init();
556
557 // Mount only after init() succeeds; see mountFooter().
558 this.mountFooter();
559 this.renderWelcome();
560 void this.loadBanner();
561 this.setupAutocomplete();
562 void this.loadPersistedInputHistory();
563 this.state.editorContainer.clear();
564 this.state.editorContainer.addChild(this.state.editor);
565 this.state.ui.setFocus(this.state.editor);
566 return shouldReplayHistory;
567 }
568
569 private startEventLoop(): void {
570 // Dispose any previous focus/clipboard/theme tracking so re-entering the

Callers 1

startMethod · 0.95

Calls 9

initMethod · 0.95
mountFooterMethod · 0.95
renderWelcomeMethod · 0.95
loadBannerMethod · 0.95
setupAutocompleteMethod · 0.95
setFocusMethod · 0.80
clearMethod · 0.65
addChildMethod · 0.45

Tested by

no test coverage detected