Skip to content

Reduce VS Code branch clutter by pruning clean agent worktrees during cleanup#73

Closed
NagyVikt wants to merge 1 commit intomainfrom
agent/codex/zeus-edixai-com-vscode-active-branches-version-bump
Closed

Reduce VS Code branch clutter by pruning clean agent worktrees during cleanup#73
NagyVikt wants to merge 1 commit intomainfrom
agent/codex/zeus-edixai-com-vscode-active-branches-version-bump

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

… cleanup

Users were seeing many stale sandbox branches in Source Control after work finished. Cleanup now forwards an active-only prune mode so clean agent worktrees are removed while dirty worktrees stay visible, and unmerged branch refs are preserved for safety.\n\nConstraint: Preserve unmerged branch refs while hiding stale clean worktrees from VS Code\nRejected: Delete all clean agent branches during cleanup | would risk dropping unmerged branch pointers\nConfidence: high\nScope-risk: moderate\nReversibility: clean\nDirective: Use --keep-clean-worktrees when operators intentionally need every clean worktree to stay mounted\nTested: npm test; node --check bin/multiagent-safety.js; npm pack --dry-run\nNot-tested: Live VS Code panel behavior against existing user workspace settings
@NagyVikt NagyVikt closed this Apr 13, 2026
@NagyVikt NagyVikt deleted the agent/codex/zeus-edixai-com-vscode-active-branches-version-bump branch April 13, 2026 19:19
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