VS Code extension repeatedly starts git-init-watcher on non-Git NAS workspaces
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Summary
The Codex VS Code extension starts a git-init-watcher for a workspace that has no .git directory and does not use Git.
On a mapped NAS drive, the filesystem watch fails and the extension retries, flooding the Output panel with warnings.
Environment
- Windows
- VS Code extension:
openai.chatgpt@26.908.40401 - Workspace:
V:\NGINX\www\evmgt - Mapped network drive:
V:→\\nas3\APPS - No
.gitdirectory exists in the workspace - VS Code built-in Git integration is disabled (
"git.enabled": false)
Actual behavior
Repeated warning:
[warning] [git-init-watcher] Git init watcher failed cwd=V:\NGINX\www\evmgt errorCode=UNKNOWN errorMessage="UNKNOWN: unknown error, watch"
Error: UNKNOWN: unknown error, watch
at FSWatcher._handle.onchange (node:internal/fs/watchers:267:21)
The extension keeps retrying the watcher although the workspace is not a Git repository.
Expected behavior
Do not create a Git-init watcher unless Git metadata exists, or stop retrying quietly after an unsupported filesystem-watch error. This would prevent warnings in ordinary non-Git folders on network drives.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named in the report; start by locating the git-init-watcher entry point and reproducing the warning on a non-Git network workspace. Done means the watcher is not repeatedly started or retried in that case, and the warning flood is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, node.js, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100