(payload: QuestionPanelData)
| 2867 | } |
| 2868 | |
| 2869 | private showQuestionDialog(payload: QuestionPanelData): void { |
| 2870 | this.patchLivePane({ pendingQuestion: { data: payload } }); |
| 2871 | notifyTerminalOnce(this.state, `question:${payload.id}`, { |
| 2872 | title: 'Kimi Code needs your answer', |
| 2873 | body: payload.questions[0]?.question, |
| 2874 | }); |
| 2875 | const dialog = new QuestionDialogComponent( |
| 2876 | { data: payload }, |
| 2877 | (response) => { |
| 2878 | this.questionController.respond(response); |
| 2879 | }, |
| 2880 | 6, |
| 2881 | () => { |
| 2882 | this.toggleToolOutputExpansion(); |
| 2883 | }, |
| 2884 | ); |
| 2885 | this.mountEditorReplacement(dialog); |
| 2886 | } |
| 2887 | |
| 2888 | private hideQuestionDialog(): void { |
| 2889 | this.patchLivePane({ pendingQuestion: null }); |
no test coverage detected