Skip to content

Hide nested agent worktrees from default VS Code Source Control scans#292

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/vscode-setup-ignore-worktrees-2026-04-22-12-18
Apr 22, 2026
Merged

Hide nested agent worktrees from default VS Code Source Control scans#292
NagyVikt merged 1 commit intomainfrom
agent/codex/vscode-setup-ignore-worktrees-2026-04-22-12-18

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • teach setup and fix to create or merge a shared .vscode/settings.json with Guardex worktree scan ignores
  • allow repos to track only .vscode/settings.json while keeping the rest of .vscode local
  • add setup regression coverage for fresh setup and JSONC merge behavior

Verification

  • node --test test/setup.test.js --test-name-pattern "setup provisions workflow files and repo config|setup appends managed gitignore block without clobbering existing entries|setup merges Guardex repo-scan ignores into tracked VS Code workspace settings"
  • node --check bin/multiagent-safety.js
  • git check-ignore -v .vscode/tmp-local.json .vscode/settings.json

Setup and fix now write or merge a shared .vscode/settings.json with repository-scan ignores for Guardex .omx and .omc worktree roots. The managed gitignore block also re-includes that one tracked settings file while keeping the rest of .vscode local-only, so plain repo checkouts stop filling Source Control with raw sandbox repositories.

Constraint: Default repo views should hide nested Guardex worktrees while the optional parent-workspace view still exposes them intentionally
Rejected: Add the .vscode/settings.json fix only to this repo | would not improve gx-managed repos created by setup
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep .vscode/settings.json as the only shared VS Code file unless setup and tests are updated together
Tested: node --test test/setup.test.js --test-name-pattern "setup provisions workflow files and repo config|setup appends managed gitignore block without clobbering existing entries|setup merges Guardex repo-scan ignores into tracked VS Code workspace settings"; node --check bin/multiagent-safety.js; git check-ignore -v .vscode/tmp-local.json .vscode/settings.json
Not-tested: Manual VS Code UI verification against a live repo window
@NagyVikt NagyVikt merged commit 2e9c036 into main Apr 22, 2026
1 check passed
@NagyVikt NagyVikt deleted the agent/codex/vscode-setup-ignore-worktrees-2026-04-22-12-18 branch April 22, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant