From 41c5195ed36d87518fc26b97ec625fa6ac68398b Mon Sep 17 00:00:00 2001 From: cornmander Date: Fri, 15 Aug 2025 10:37:49 -0400 Subject: feat(shell): Include disallowed commands in block reason (#6278) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- packages/core/src/utils/shell-utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/core/src/utils/shell-utils.ts') diff --git a/packages/core/src/utils/shell-utils.ts b/packages/core/src/utils/shell-utils.ts index c7f1839e..4164cdca 100644 --- a/packages/core/src/utils/shell-utils.ts +++ b/packages/core/src/utils/shell-utils.ts @@ -301,7 +301,9 @@ export function checkCommandPermissions( return { allAllowed: false, disallowedCommands, - blockReason: `Command(s) not on the global or session allowlist.`, + blockReason: `Command(s) not on the global or session allowlist. Disallowed commands: ${disallowedCommands + .map((c) => JSON.stringify(c)) + .join(', ')}`, isHardDenial: false, // This is a soft denial; confirmation is possible. }; } @@ -322,7 +324,7 @@ export function checkCommandPermissions( return { allAllowed: false, disallowedCommands, - blockReason: `Command(s) not in the allowed commands list.`, + blockReason: `Command(s) not in the allowed commands list. Disallowed commands: ${disallowedCommands.map((c) => JSON.stringify(c)).join(', ')}`, isHardDenial: false, // This is a soft denial. }; } -- cgit v1.2.3