We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c87cdb commit ef947edCopy full SHA for ef947ed
1 file changed
src/infra/exec-approvals.ts
@@ -1835,7 +1835,13 @@ export function resolveExecApprovalUnavailableDecisions(params?: {
1835
return OPTIONAL_EXEC_APPROVAL_DECISIONS.filter((decision) => !allowed.has(decision));
1836
}
1837
1838
-/** Returns the user-facing reason why Allow Always is not available, or null if it is. */
+/**
1839
+ * Returns the user-facing reason why Allow Always is not available.
1840
+ *
1841
+ * When ask=always → policy requires every-time approval.
1842
+ * When allowAlwaysPersistenceKind=one-shot → command cannot be saved.
1843
+ * Otherwise safe-defaults to the policy message. (#97069)
1844
+ */
1845
export function getAllowAlwaysUnavailableReason(params?: {
1846
ask?: string | null;
1847
allowAlwaysPersistenceKind?: "one-shot" | null;
0 commit comments