fix(DIS-152): add Glob and Grep permissions for mapped host paths
Glob and Grep are separate tools from Read in Claude Code's permission model — the agent was triggering permission prompts when trying to use Glob on the host path even though Read was allowed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
aeaeff8509
commit
cff6d0cc3c
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ export function createClaudeConfig(
|
|||
allow.push(`Read(${normalized}/**)`);
|
||||
allow.push(`Write(${normalized}/**)`);
|
||||
allow.push(`Edit(${normalized}/**)`);
|
||||
allow.push(`Glob(${normalized}/**)`);
|
||||
allow.push(`Grep(${normalized}/**)`);
|
||||
}
|
||||
|
||||
// Deny list — the ../** rules are only added when there are NO path mappings.
|
||||
|
|
|
|||
Loading…
Reference in a new issue