fix(mcp): persist the access policy only on explicit apply

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-30 15:34:23 +08:00
1 parent dc02e3bccf
commit 20ffc62249
5 files changed
+198 -245

No files matched your search

@@ -15,8 +15,9 @@ const steps = computed<Array<{ id: StepId; title: string; description: string }>
const currentStep = ref<StepId>("overrides");
const currentIndex = computed(() => steps.value.findIndex((step) => step.id === currentStep.value));
// Every step is directly reachable from the nav above and all policy edits save as they are made,
// so the last step has nothing to advance to and nothing to confirm.
// Every step is directly reachable from the nav above and all policy edits stage into the
// dialog draft, so the last step has nothing to advance to and nothing to confirm here —
// persistence is the settings footer Apply button's job, not this stepper's.
const isLastStep = computed(() => currentIndex.value === steps.value.length - 1);
function scrollableAncestor(target: EventTarget | null): HTMLElement | null {