Skip to content

Allow VS Code Source Control writes on protected branches by default#82

Merged
NagyVikt merged 4 commits intomainfrom
agent/codex/mate-edix-hu-vscode-protected-main-allow
Apr 13, 2026
Merged

Allow VS Code Source Control writes on protected branches by default#82
NagyVikt merged 4 commits intomainfrom
agent/codex/mate-edix-hu-vscode-protected-main-allow

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

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

NagyVikt and others added 4 commits April 13, 2026 22:43
This flips the protected-branch VS Code gate to opt-out mode so non-Codex VS Code Source Control users can commit/push to protected branches immediately in this repo setup, while Codex sessions remain blocked on protected branches and still require agent/* flow.

Constraint: Must keep Codex protected-branch guardrails intact even when VS Code manual writes are enabled

Rejected: Removing protected-branch guardrails entirely | would allow terminal/manual bypasses beyond VS Code scope

Confidence: high

Scope-risk: moderate

Reversibility: clean

Directive: Keep template and installed hook defaults aligned whenever protected-branch write policy changes

Tested: bash -n .githooks/pre-commit .githooks/pre-push templates/githooks/pre-commit templates/githooks/pre-push; node --test test/install.test.js; npm test

Not-tested: Live VS Code GUI commit/push path in this exact checkout
@NagyVikt NagyVikt merged commit 8daffb7 into main Apr 13, 2026
6 checks passed
@NagyVikt NagyVikt deleted the agent/codex/mate-edix-hu-vscode-protected-main-allow branch April 13, 2026 21:39
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