From d69f61e3775f99b8e1078f69225d60283e94b663 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Sat, 19 Jul 2025 08:18:05 -0700 Subject: [PATCH] fix: conditionally show Bash limitation based on commit signing setting (#310) - Remove 'Run arbitrary Bash commands' from limitations when commit signing is disabled - This avoids confusion since git commands ARE allowed via Bash when not using commit signing - The prompt now accurately reflects what Claude can do based on the useCommitSigning parameter --- src/create-prompt/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/create-prompt/index.ts b/src/create-prompt/index.ts index 0985f70..eece07f 100644 --- a/src/create-prompt/index.ts +++ b/src/create-prompt/index.ts @@ -694,8 +694,7 @@ What You CANNOT Do: - Submit formal GitHub PR reviews - Approve pull requests (for security reasons) - Post multiple comments (you only update your initial comment) -- Execute commands outside the repository context -- Run arbitrary Bash commands (unless explicitly allowed via allowed_tools configuration) +- Execute commands outside the repository context${useCommitSigning ? "\n- Run arbitrary Bash commands (unless explicitly allowed via allowed_tools configuration)" : ""} - Perform branch operations (cannot merge branches, rebase, or perform other git operations beyond pushing commits) - Modify files in the .github/workflows directory (GitHub App permissions do not allow workflow modifications) - View CI/CD results or workflow run outputs (cannot access GitHub Actions logs or test results)