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

Method hideApprovalPanel

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

Source from the content-addressed store, hash-verified

2822 }
2823
2824 private hideApprovalPanel(): void {
2825 // If the full-screen preview is open, fold it back first so the saved-
2826 // children stack stays consistent with what mountEditorReplacement set up.
2827 if (this.approvalPreview !== undefined) this.closeApprovalPreview();
2828 this.activeApprovalPanel = undefined;
2829 this.patchLivePane({ pendingApproval: null });
2830 this.restoreEditor();
2831 }
2832
2833 // Mounts the full-screen approval preview viewer on top of the current
2834 // approval panel. Uses the same nested-takeover pattern as

Callers 2

constructorMethod · 0.95
showApprovalMethod · 0.80

Calls 3

closeApprovalPreviewMethod · 0.95
patchLivePaneMethod · 0.95
restoreEditorMethod · 0.95

Tested by

no test coverage detected