Skip to content

docs: fix misleading YOLO mode description in defaultApprovalMode#21878

Merged
Adib234 merged 7 commits intogoogle-gemini:mainfrom
Gyanranjan-Priyam:docs/fix-yolo-mode-description
Mar 11, 2026
Merged

docs: fix misleading YOLO mode description in defaultApprovalMode#21878
Adib234 merged 7 commits intogoogle-gemini:mainfrom
Gyanranjan-Priyam:docs/fix-yolo-mode-description

Conversation

@Gyanranjan-Priyam
Copy link
Contributor

@Gyanranjan-Priyam Gyanranjan-Priyam commented Mar 10, 2026

Summary

Fixes #21883

Fixes incorrect/misleading documentation that stated "yolo is not supported yet" when YOLO mode is actually fully supported.

Problem

The documentation for general.defaultApprovalMode setting incorrectly stated:

"'yolo' is not supported yet."

This was misleading because YOLO mode is fully functional. The setting does not include yolo as an option because it is intentionally excluded from being set as a default in settings.json for security reasons—not because the feature does not exist.

Solution

Updated the description to accurately explain that:

  1. YOLO mode is fully supported and auto-approves all actions
  2. It can only be enabled via command line flags (--yolo or --approval-mode=yolo) for security reasons

Changes

  • Updated settingsSchema.ts with the corrected description
  • Regenerated settings.schema.json, docs/cli/settings.md, and docs/reference/configuration.md

Testing

All existing tests pass.

The documentation incorrectly stated 'yolo is not supported yet' when in
fact YOLO mode is fully supported - it just cannot be set as the default
approval mode in settings.json for security reasons.

Updated the description to clarify that YOLO mode can only be enabled via
command line flags (--yolo or --approval-mode=yolo).
@Gyanranjan-Priyam Gyanranjan-Priyam requested review from a team as code owners March 10, 2026 14:09
jerop
jerop previously approved these changes Mar 10, 2026
@gemini-cli gemini-cli bot added the status/need-issue Pull requests that need to have an associated issue. label Mar 10, 2026
@jerop
Copy link
Contributor

jerop commented Mar 10, 2026

@Gyanranjan-Priyam please open an issue for this and link it to this PR

@Gyanranjan-Priyam
Copy link
Contributor Author

Gyanranjan-Priyam commented Mar 10, 2026

@jerop Kindly recheck the PR and also I create an issue and linked it to the PR.

@gemini-cli gemini-cli bot added area/documentation Gemini CLI documentation tasks and issues and removed status/need-issue Pull requests that need to have an associated issue. labels Mar 10, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves an inaccuracy in the documentation for the general.defaultApprovalMode setting. The previous documentation incorrectly indicated that 'yolo' mode was unsupported. The changes clarify that YOLO mode is fully functional for automatically approving actions, but its activation is restricted to specific command-line flags for security purposes, rather than being configurable as a default in settings.json. This update provides users with precise information regarding the feature's availability and proper usage.

Highlights

  • Documentation Correction: Corrected misleading documentation that previously stated 'yolo' mode was not supported.
  • YOLO Mode Clarification: Clarified that YOLO mode is fully functional for auto-approving all actions, but for security reasons, it can only be enabled via command-line flags (--yolo or --approval-mode=yolo).
  • Schema and Doc Regeneration: Updated the internal settings schema definition and regenerated all user-facing documentation files to reflect the accurate description of YOLO mode.
Changelog
  • docs/cli/settings.md
    • Updated the description for general.defaultApprovalMode to accurately state that YOLO mode is supported via command-line flags.
  • docs/reference/configuration.md
    • Revised the description for general.defaultApprovalMode to explain YOLO mode's command-line activation.
  • packages/cli/src/config/settingsSchema.ts
    • Modified the description for defaultApprovalMode to reflect the correct information about YOLO mode.
  • schemas/settings.schema.json
    • Updated the description and markdownDescription fields for defaultApprovalMode to remove the misleading "not supported yet" phrase and add details about command-line activation.
Activity
  • No human activity (comments, reviews, etc.) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly updates the documentation for the general.defaultApprovalMode setting across multiple files. The previous description was misleading, stating that YOLO mode was not supported. The new description accurately clarifies that YOLO mode is fully functional but can only be enabled via command-line flags for security reasons. The changes are consistent in the settings schema source file and all generated documentation files. The pull request is well-focused and resolves the documented issue effectively.

@gemini-cli gemini-cli bot added the help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support! label Mar 10, 2026
@gemini-cli gemini-cli bot added the area/core Issues related to User Interface, OS Support, Core Functionality label Mar 10, 2026
@Adib234 Adib234 enabled auto-merge March 11, 2026 14:48
@Adib234 Adib234 self-assigned this Mar 11, 2026
@Adib234 Adib234 added this pull request to the merge queue Mar 11, 2026
Merged via the queue into google-gemini:main with commit 99bbbc2 Mar 11, 2026
26 of 27 checks passed
e-kotov pushed a commit to e-kotov/gemini-cli that referenced this pull request Mar 11, 2026
…ogle-gemini#21878)

Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: A.K.M. Adib <adibakm@google.com>
JaisalJain pushed a commit to JaisalJain/gemini-cli that referenced this pull request Mar 11, 2026
…ogle-gemini#21878)

Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: A.K.M. Adib <adibakm@google.com>
liamhelmer pushed a commit to badal-io/gemini-cli that referenced this pull request Mar 12, 2026
…ogle-gemini#21878)

Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: A.K.M. Adib <adibakm@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Issues related to User Interface, OS Support, Core Functionality area/documentation Gemini CLI documentation tasks and issues help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: defaultApprovalMode description incorrectly states YOLO mode is not supported

3 participants