Skip to content

[BUG] Running File Read on Windows is really slow, almost unusable. Please optimize the cygpath logic! #13361

@caozhiyuan

Description

@caozhiyuan

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Running File Read on Windows is really slow, almost unusable. Please optimize the cygpath logic! On Windows, each read operation takes about 3 seconds on average, while on Linux it's only a few hundred milliseconds! It's even slower in the VSCode extension, and there seems to be some hook script involved.

What Should Happen?

Each file read takes less than one second

Error Messages/Logs

Steps to Reproduce

  1. open claude --debug
  2. tell ai read file README
  3. see debug log

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.0.61 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas reproHas detailed reproduction stepsperf:memoryplatform:windowsIssue specifically occurs on Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions