Skip to content

Close stale VS Code worktree repos#439

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/close-deleted-vs-code-worktree-repos-2026-04-27-17-55
Apr 27, 2026
Merged

Close stale VS Code worktree repos#439
NagyVikt merged 1 commit intomainfrom
agent/codex/close-deleted-vs-code-worktree-repos-2026-04-27-17-55

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

VS Code keeps SCM repositories open after Guardex deletes a worktree if the active-session record disappears in the same cleanup pass. The companion now remembers observed worktree paths and sweeps deleted managed workspace folders so refresh can issue git.close even when session discovery no longer returns the deleted sandbox.

Constraint: VS Code repo-scan ignores prevent future discovery but do not close already-open repositories.

Rejected: Rely on git.repositoryScanIgnoredFolders alone | it cannot remove existing SCM providers.

Confidence: high

Scope-risk: narrow

Directive: Keep the active-agents extension and template copy byte-for-byte aligned.

Tested: node --test test/vscode-active-agents-session-state.test.js

Tested: node --test test/vscode-active-agents-session-state.test.js test/metadata.test.js test/setup.test.js

Not-tested: Manual VS Code window reload behavior after extension update.
@NagyVikt NagyVikt merged commit 0c3a9df into main Apr 27, 2026
0 of 5 checks passed
@NagyVikt NagyVikt deleted the agent/codex/close-deleted-vs-code-worktree-repos-2026-04-27-17-55 branch April 27, 2026 16:05
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