Skip to content

git: Avoid watching home for missing global config - #56300

Closed
karimknaebel wants to merge 1 commit into
zed-industries:mainfrom
karimknaebel:main
Closed

git: Avoid watching home for missing global config#56300
karimknaebel wants to merge 1 commit into
zed-industries:mainfrom
karimknaebel:main

Conversation

@karimknaebel

@karimknaebel karimknaebel commented May 9, 2026

Copy link
Copy Markdown

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Important

This fix is just a draft fix that codex generated that successfully fixes the "Stuck in 'Starting proxy...'" issue for me. You will probably not want to merge this PR and instead write your own solution for this.

(maybe?) closes #52633

problematic commit: 1afe44c

Summary

Fixes a remote startup hang caused by the global Git config watchers added for unsafe repository handling.

RealFs::watch watches the nearest existing ancestor when asked to watch a path that does not exist. For ~/.gitconfig, that means a user without a global Git config file ends up watching $HOME. On remote filesystems that use the polling watcher, this becomes a recursive poll of the entire home directory, which can keep the remote server busy reading a large home tree while the client is stuck at "Starting proxy...".

Release Notes:

  • Fixed a remote startup hang caused by polling the entire home directory when global Git config files are missing

@cla-bot

cla-bot Bot commented May 9, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @karimknaebel on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label May 9, 2026
@karimknaebel

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 9, 2026
@cla-bot

cla-bot Bot commented May 9, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@karimknaebel

Copy link
Copy Markdown
Author

Superseeded by #56345

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

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zed fails to start proxy to WSL

1 participant