Skip to content

The integration doesn't honor claude/settings.json permissions for file reads. #94

@antran22

Description

@antran22

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:

Image

In contrast, Claude Code in the terminal works just fine

Image

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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions