Skip to content

Prevent dirty primary auto-revert#660

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/prevent-dirty-primary-auto-revert-2026-06-24-14-44
Jun 24, 2026
Merged

Prevent dirty primary auto-revert#660
NagyVikt merged 1 commit into
mainfrom
agent/codex/prevent-dirty-primary-auto-revert-2026-06-24-14-44

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Dirty primary checkout work belongs to the user or another lane, so the post-checkout guard must not stash it or switch branches again.

Constraint: Keep clean-tree auto-revert behavior unchanged.

Tested: bash -n templates/githooks/post-checkout

Tested: node --check src/mcp/collect.js

Tested: node --test --test-name-pattern "post-checkout guard skips auto-revert" test/branch.test.js

Tested: openspec validate agent-codex-prevent-dirty-primary-auto-revert-2026-06-24-14-44 --type change --strict

Tested: openspec validate --specs

Scope-risk: Primary checkout stays on the accidental branch when dirty until manual recovery.
@NagyVikt NagyVikt merged commit 9d7829e into main Jun 24, 2026
@NagyVikt NagyVikt deleted the agent/codex/prevent-dirty-primary-auto-revert-2026-06-24-14-44 branch June 24, 2026 12:55
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