Skip to content

Cannot download empty files #51551

@PRO-2684

Description

@PRO-2684

Reproduction steps

  1. Connect to a remote machine
  2. Create empty __init__.py
  3. Create another.py with content a = 1
  4. Select these two files, right click and select "Download"
  5. Choose a folder to save the files and confirm

Current vs. Expected behavior

Current behavior: Only non-empty file (another.py) is saved
Expected behavior: All these files should be saved

Zed version and system specs

Zed: v0.227.1+stable.199.9f9b707d39d62468d4cdaed2d8eb95a847da4cf9 (Zed)
OS: Windows 10.0.26200
Memory: 15.8 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics || Intel Corporation || 27.20.100.8935

Attach Zed log file

Notice that the log file does not mention the empty __init__.py at all:

Zed.log
2026-03-14T19:54:37+08:00 INFO  [project] handle_create_file_for_peer: successfully wrote file to "D:\\Download\\another.py"

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    frequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:easy repro stepsSteps to reproduce are easyplatform:remoteRemote development, SSH and zed-remote-serverpriority:P2Average run-of-the-mill bugsstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions