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

Function restorePermission

apps/kimi-code/src/cli/run-prompt.ts:358–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356): Promise<() => Promise<void>> {
357 let overridePermission: Promise<void> | undefined;
358 const restorePermission = async () => {
359 await overridePermission?.catch(() => {});
360 if (previousPermission !== 'auto') {
361 await session.setPermission(previousPermission);
362 }
363 };
364 setRestorePermission(restorePermission);
365 if (previousPermission !== 'auto') {
366 overridePermission = session.setPermission('auto');

Callers

nothing calls this directly

Calls 1

setPermissionMethod · 0.45

Tested by

no test coverage detected