Repository navigation
[Bugfix #370] Fix Gemini --yolo mode in general consultations - #371
Merged
waleedkadous merged 1 commit intoFeb 17, 2026
Merged
Conversation
General mode consultations (consult -m gemini general "...") were passing --yolo to the Gemini CLI, allowing it to auto-approve file writes in the main worktree. This removes --yolo from MODEL_CONFIGS and only adds it conditionally for protocol mode (--type), where structured reviews need file access.
waleedkadous
deleted the
builder/bugfix-370-gemini-yolo-mode-allows-writes
branch
February 17, 2026 06:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #370
Root Cause
MODEL_CONFIGShardcodedargs: ['--yolo']for Gemini, passing it unconditionally to both general mode (--prompt) and protocol mode (--type). In general mode, this gave Gemini full write access via auto-approval, allowing it to silently modify files in the main worktree.Fix
--yolofromMODEL_CONFIGS.gemini.args(now[])generalModeparameter torunConsultation()--yolois now only passed in protocol mode (when--typeis set), where structured reviews need file accessTest Plan
--yoloto Gemini CLI--yoloto Gemini CLIsend-integration.test.ts— unrelated)