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

Method closeApprovalPreview

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

Source from the content-addressed store, hash-verified

2855 }
2856
2857 private closeApprovalPreview(): void {
2858 const preview = this.approvalPreview;
2859 if (preview === undefined) return;
2860 this.approvalPreview = undefined;
2861 this.state.ui.clear();
2862 for (const child of preview.savedChildren) {
2863 this.state.ui.addChild(child);
2864 }
2865 this.state.ui.setFocus(preview.panel);
2866 this.state.ui.requestRender(true);
2867 }
2868
2869 private showQuestionDialog(payload: QuestionPanelData): void {
2870 this.patchLivePane({ pendingQuestion: { data: payload } });

Callers 2

hideApprovalPanelMethod · 0.95
openApprovalPreviewMethod · 0.95

Calls 4

setFocusMethod · 0.80
clearMethod · 0.65
requestRenderMethod · 0.65
addChildMethod · 0.45

Tested by

no test coverage detected