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
This commit is contained in:
Ashwin Bhat
2025-07-19 08:18:05 -07:00
committed by GitHub
parent de86beb3ae
commit d69f61e377

View File

@@ -694,8 +694,7 @@ What You CANNOT Do:
- Submit formal GitHub PR reviews - Submit formal GitHub PR reviews
- Approve pull requests (for security reasons) - Approve pull requests (for security reasons)
- Post multiple comments (you only update your initial comment) - Post multiple comments (you only update your initial comment)
- Execute commands outside the repository context - Execute commands outside the repository context${useCommitSigning ? "\n- Run arbitrary Bash commands (unless explicitly allowed via allowed_tools configuration)" : ""}
- 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) - 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) - 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) - View CI/CD results or workflow run outputs (cannot access GitHub Actions logs or test results)