Repository navigation
fix(devcontainer): exclude agent worktrees from the VS Code watcher - #6454
Merged
Merged
Conversation
Owner
Author
Test recordPerson step after the merge: update the main checkout that the VS Code window shows, then run the count below. VS Code starts its watcher again when Measurement before the change (2026-11-19, VS Code Insiders 1.148.0)
Folders of the checkout (
Expected count after the change: about 8000 watches, which is 1.5 percent of the limit. Command for the count after the changefor pid in $(pgrep -u "$(id -u)" -f '[-]-type=fileWatcher'); do echo "$pid $(cat /proc/$pid/fdinfo/* 2>/dev/null | grep -c '^inotify')"; doneThe issue also asks for this check: Local checks on the final head
Decisions against the issue text
One settings file (head 512370f): |
dan-petty
force-pushed
the
fix/6453-vscode-watcher-exclude
branch
from
November 19, 2026 19:55
16eccf7 to
512370f
Compare
dan-petty
marked this pull request as ready for review
November 19, 2026 20:02
dan-petty
pushed a commit
that referenced
this pull request
Nov 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.181.1](v0.181.0...v0.181.1) (2026-11-19) ### Bug Fixes * **devcontainer:** exclude agent worktrees from the VS Code watcher ([#6454](#6454)) ([8952d83](8952d83)) * **telemetry:** drop the copied weaver version from the install hint ([#6462](#6462)) ([e3ed7e7](e3ed7e7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The VS Code file watcher held 524137 of the 524288 inotify watches of the user, so other programs could not add a watch: aardvark-dns stopped and container names did not resolve. .vscode/settings.json now sets files.watcherExclude for .data/, repos/, .claude/worktrees/, .venv/ and the tool caches. These folders held about 520000 of the 528000 folders of the checkout. VS Code merges the setting with its default excludes, so the setting does not repeat them. One workspace setting covers VS Code and Antigravity and applies with no rebuild. docs/DEVCONTAINER_USAGE.md tells where the setting is and how to count the watches.
Closes #6453
Change:
openspec/changes/archive/2026-11-19-6453-vscode-watcher-exclude/