claude-code - 💡(How to fix) Fix [FEATURE] Remove unnecessary `cd` calls to subfolders, that makes it difficult to allow permissions on commands [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53415Fetched 2026-04-26 05:16:30
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1

Root Cause

For example: you allow 'git log' command so it won't ask for permissions on 'git log', but if it does "cd subfolder && git log" then it asks you every time because cd command can't be allowed. It's super annoying can you come up with the solution for that please? Thanks

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

For example: you allow 'git log' command so it won't ask for permissions on 'git log', but if it does "cd subfolder && git log" then it asks you every time because cd command can't be allowed. It's super annoying can you come up with the solution for that please? Thanks

Proposed Solution

propagate allow permissions to subfolders

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

  1. you allow 'git log' command so it won't ask for permissions on 'git log',
  2. but if it does "cd subfolder && git log" then it asks you every time because cd command can't be allowed.

Additional Context

No response

extent analysis

TL;DR

Implement a recursive permission allowance for subfolders to prevent repeated permission requests.

Guidance

  • Identify the current permission system's limitations and how it handles subfolder commands.
  • Consider implementing a wildcard or recursive permission setting for commands like git log to apply to subfolders.
  • Evaluate the security implications of allowing recursive permissions to ensure it doesn't introduce vulnerabilities.
  • Develop a solution that balances convenience with security, potentially by allowing users to specify which commands can be executed recursively.

Example

No specific code example can be provided without knowing the implementation details of the current permission system.

Notes

The solution should be carefully designed to avoid security risks associated with recursive permission granting. The exact implementation will depend on the underlying system's architecture and security requirements.

Recommendation

Apply a workaround by implementing recursive permission allowance for specific commands, as this seems to be the most direct approach to addressing the reported issue, but ensure to thoroughly assess the security implications.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING