Skip to content

Zed logs "reading bytes of the file" errors for directories sent as ToolCallLocation #33510

Closed as not planned

Description

@bcdady

Running opencode under Zed, I see this in ~/.local/share/zed/logs/Zed.log after every bash/grep/glob call:

ERROR [crates/acp_thread/src/acp_thread.rs:646] reading bytes of the file "/home/bryan/github/bcdady/opencode"

The path is my project root, not a file. Looks like packages/opencode/src/acp/tool.ts toLocations returns [{ path: workdir }] for bash/shell and locationFrom(input.path) for grep/glob - those are directories, and Zed tries to read them as files.

Tool calls still work, just noisy logs.

I'll follow up with a PR that drops the bash workdir location (it's already in rawInput.cwd) and filters non-files out of the grep/glob path.

Activity

  1. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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