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