Skip to content

Prevent finished agent branches from lingering without PR merge#88

Merged
NagyVikt merged 2 commits intomainfrom
agent/codex/pia-edix-hu-dup-2-auto-finish-agent-branches-on-session-end
Apr 13, 2026
Merged

Prevent finished agent branches from lingering without PR merge#88
NagyVikt merged 2 commits intomainfrom
agent/codex/pia-edix-hu-dup-2-auto-finish-agent-branches-on-session-end

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Setup and doctor now run an auto-finish sweep for clean pending agent/* branches against the current local base branch (including protected-main doctor sandbox runs). This closes the common gap where branch worktrees stayed local/visible in VS Code after work was done. Added regression coverage for protected-main doctor flow and a metadata parity guard so runtime codex-agent helper stays aligned with templates.

Constraint: Keep protected-main write policy intact while enabling post-doctor auto-finish via sandbox-safe path

Rejected: Force-commit dirty pending branches automatically | risks shipping partial/unreviewed work

Confidence: medium

Scope-risk: moderate

Reversibility: clean

Directive: If auto-finish sweep behavior changes, update doctor/setup output and test fixtures together

Tested: node --check bin/multiagent-safety.js; node --test test/install.test.js; node --test test/metadata.test.js; npm test

Not-tested: Live GitHub required-check wait behavior in a real protected remote

NagyVikt and others added 2 commits April 13, 2026 23:28
Setup and doctor now run an auto-finish sweep for clean pending agent/* branches against the current local base branch (including protected-main doctor sandbox runs). This closes the common gap where branch worktrees stayed local/visible in VS Code after work was done. Added regression coverage for protected-main doctor flow and a metadata parity guard so runtime codex-agent helper stays aligned with templates.

Constraint: Keep protected-main write policy intact while enabling post-doctor auto-finish via sandbox-safe path

Rejected: Force-commit dirty pending branches automatically | risks shipping partial/unreviewed work

Confidence: medium

Scope-risk: moderate

Reversibility: clean

Directive: If auto-finish sweep behavior changes, update doctor/setup output and test fixtures together

Tested: node --check bin/multiagent-safety.js; node --test test/install.test.js; node --test test/metadata.test.js; npm test

Not-tested: Live GitHub required-check wait behavior in a real protected remote
@NagyVikt NagyVikt merged commit c9f6e1e into main Apr 13, 2026
5 checks passed
@NagyVikt NagyVikt deleted the agent/codex/pia-edix-hu-dup-2-auto-finish-agent-branches-on-session-end branch April 13, 2026 21:44
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