claude-code - 💡(How to fix) Fix Files being truncated by edit in cowork with no warning and way below the 32kb limit

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

When using the Write or Edit tool in Cowork mode with a folder mounted from Windows, file writes succeed without any error but the resulting file is silently truncated. The tool reports success, no exception is raised, and the file appears to have been written — but the content is cut off partway through.

  • No warning, no error, no indication anything went wrong The tool should either write the file completely or raise an error. Silent partial writes are not acceptable.

Error Messages/Logs

Code Example

no errors, files just get corrupted
RAW_BUFFERClick to expand / collapse

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?

Bug report — Cowork file Write/Edit tool silently truncates files on Windows mount

When using the Write or Edit tool in Cowork mode with a folder mounted from Windows, file writes succeed without any error but the resulting file is silently truncated. The tool reports success, no exception is raised, and the file appears to have been written — but the content is cut off partway through.

Observed behavior:

  • Write/Edit tool returns success
  • File is truncated (e.g. a function body cut off mid-line, or an if __name__ == "__main__" block missing entirely)
  • No warning, no error, no indication anything went wrong
  • Python syntax errors or missing logic only discovered at runtime

Why this is serious:

  • Silent data loss. If the truncated content had been API keys, credentials, or unique configuration, it would have been gone without any indication.
  • The tool says it succeeded, so there is no reason to double-check.
  • Files affected were well under 32KB — this is not a large-file edge case.

Environment:

  • Cowork mode, Claude desktop app
  • Workspace folder mounted from Windows (NTFS)
  • Files: Python scripts (~5–8KB), modified via Edit and Write tools

What Should Happen?

Expected behavior: The tool should either write the file completely or raise an error. Silent partial writes are not acceptable.

Error Messages/Logs

no errors, files just get corrupted

Steps to Reproduce

just use cowork and start doing things with file read/write actions and things get corrupted... claude reports that the 32kb limit caused it but the file is 8kb or 12kb for example

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude 1.9659.2 (390d6c) 2026-05-28T21:50:01.000Z

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Files being truncated by edit in cowork with no warning and way below the 32kb limit