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

Method showQuestionDialog

apps/kimi-code/src/tui/kimi-tui.ts:2869–2886  ·  view source on GitHub ↗
(payload: QuestionPanelData)

Source from the content-addressed store, hash-verified

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 });

Callers 2

constructorMethod · 0.95
showQuestionMethod · 0.80

Calls 5

patchLivePaneMethod · 0.95
notifyTerminalOnceFunction · 0.90
respondMethod · 0.80

Tested by

no test coverage detected