-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
The last experiment with Claude Code integration in Zed sent my .env to Anthropic server, even though I have had .claude/settings.json file with proper deny rules:
{
"permissions": {
"deny": ["Read(/.env)"]
}
}Yet if I ask the Claude Code integration to read & print the .env file out, it will gladly do it:
In contrast, Claude Code in the terminal works just fine
The problem comes from the fact that the ACP adapter mock out tool calls such as Read, Write into ACP specific function calls that read directly from Zed's buffer, instead of reading through the Claude Code filesystem access
claude-code-acp/src/acp-agent.ts
Line 403 in 75b44e9
| async readTextFile(params: ReadTextFileRequest): Promise<ReadTextFileResponse> { |
May I ask if there is any plan from the Zed Editor & Claude ACP teams to work on this design problem?
Metadata
Metadata
Assignees
Labels
No labels