()
| 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 |
no test coverage detected