Skip to content

revert: chore(config): disable agents by default#23672

Merged
abhipatel12 merged 3 commits intomainfrom
abhi/revert-disable-pr
Mar 24, 2026
Merged

revert: chore(config): disable agents by default#23672
abhipatel12 merged 3 commits intomainfrom
abhi/revert-disable-pr

Conversation

@abhipatel12
Copy link
Copy Markdown
Contributor

Summary

Reverts commit 557fffe1f3f9cf5500decba949efb1483815fa60 to restore the enableAgents default to true.

Details

  • Reverted configuration defaults in cli, core, and a2a-server.
  • Updated schema and docs back to default true.
  • Fixed missing export for PRIORITY_YOLO_ALLOW_ALL in core/src/index.ts and fixed the corresponding mock in a2a-server tests to resolve test/lint blockers.

Related Issues

How to Validate

Targeted tests pass:

npm test -w @google/gemini-cli-a2a-server -- src/config/config.test.ts
npm test -w @google/gemini-cli -- src/config/settingsSchema.test.ts
npm test -w @google/gemini-cli-core -- src/config/config.test.ts

@abhipatel12 abhipatel12 requested review from a team as code owners March 24, 2026 15:14
@gemini-code-assist
Copy link
Copy Markdown
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 reverts a previous change, restoring the default behavior of enabling agents. It ensures that the enableAgents setting is true by default across all relevant components, including the CLI, core functionalities, and the A2A server. The changes also include necessary updates to documentation and configuration schemas to reflect this default, alongside a fix for a missing export that was causing build issues.

Highlights

  • Configuration Reversion: Reverted the default value of experimental.enableAgents to true across cli, core, and a2a-server configurations, restoring agent functionality by default.
  • Documentation and Schema Updates: Updated documentation and the settings schema to accurately reflect the restored default of true for enableAgents.
  • Build Fixes: Exported PRIORITY_YOLO_ALLOW_ALL from core/src/index.ts and updated a corresponding mock in a2a-server tests to resolve test and lint blockers.
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.

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.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Size Change: -6 B (0%)

Total Size: 26.2 MB

Filename Size Change
./bundle/chunk-EHLOJGR4.js 0 B -3.4 kB (removed) 🏆
./bundle/chunk-JD3EF2YE.js 0 B -14.6 MB (removed) 🏆
./bundle/chunk-NKZW7ID7.js 0 B -3.64 MB (removed) 🏆
./bundle/core-F6K3KYRB.js 0 B -43.4 kB (removed) 🏆
./bundle/devtoolsService-ML2DFJXC.js 0 B -27.7 kB (removed) 🏆
./bundle/gemini-BJZEP2VU.js 0 B -521 kB (removed) 🏆
./bundle/interactiveCli-CGH35ME6.js 0 B -1.62 MB (removed) 🏆
./bundle/oauth2-provider-3PENEKJS.js 0 B -9.16 kB (removed) 🏆
./bundle/chunk-C4P727N4.js 14.6 MB +14.6 MB (new file) 🆕
./bundle/chunk-G3CLECCX.js 3.64 MB +3.64 MB (new file) 🆕
./bundle/chunk-V4XLD3SG.js 3.4 kB +3.4 kB (new file) 🆕
./bundle/core-FKPJD4YF.js 43.4 kB +43.4 kB (new file) 🆕
./bundle/devtoolsService-MSAEI7L7.js 27.7 kB +27.7 kB (new file) 🆕
./bundle/gemini-SEHLDZQY.js 521 kB +521 kB (new file) 🆕
./bundle/interactiveCli-HBFT7UYA.js 1.62 MB +1.62 MB (new file) 🆕
./bundle/oauth2-provider-CO7RN7KI.js 9.16 kB +9.16 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
./bundle/chunk-34MYV7JD.js 2.45 kB 0 B
./bundle/chunk-5AUYMPVF.js 858 B 0 B
./bundle/chunk-664ZODQF.js 124 kB 0 B
./bundle/chunk-DAHVX5MI.js 206 kB 0 B
./bundle/chunk-IUUIT4SU.js 56.5 kB 0 B
./bundle/chunk-PVQN7ZVP.js 1.96 MB 0 B
./bundle/chunk-RJTRUG2J.js 39.8 kB 0 B
./bundle/cleanup-OV4BP25L.js 0 B -856 B (removed) 🏆
./bundle/devtools-36NN55EP.js 696 kB 0 B
./bundle/dist-T73EYRDX.js 356 B 0 B
./bundle/gemini.js 2.06 kB 0 B
./bundle/getMachineId-bsd-TXG52NKR.js 1.55 kB 0 B
./bundle/getMachineId-darwin-7OE4DDZ6.js 1.55 kB 0 B
./bundle/getMachineId-linux-SHIFKOOX.js 1.34 kB 0 B
./bundle/getMachineId-unsupported-5U5DOEYY.js 1.06 kB 0 B
./bundle/getMachineId-win-6KLLGOI4.js 1.72 kB 0 B
./bundle/memoryDiscovery-WPGC7DAZ.js 922 B 0 B
./bundle/multipart-parser-KPBZEGQU.js 11.7 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B
./bundle/src-QVCVGIUX.js 47 kB 0 B
./bundle/tree-sitter-7U6MW5PS.js 274 kB 0 B
./bundle/tree-sitter-bash-34ZGLXVX.js 1.84 MB 0 B
./bundle/cleanup-U3OGY237.js 856 B +856 B (new file) 🆕

compressed-size-action

Copy link
Copy Markdown
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 changes the default value of the experimental.enableAgents setting from false to true across documentation, JSON schemas, and various configuration loading and test files. Additionally, it exports PRIORITY_YOLO_ALLOW_ALL from the core policy types and uses it in a test mock. The review comments highlight a potential redundancy in the nullish coalescing operators (?? true) for enableAgents in packages/a2a-server/src/config/config.ts and packages/core/src/config/config.ts. This redundancy might indicate an inconsistency in how configuration parameters are constructed or how schema defaults are applied, given the rule to rely on the schema as the single source of truth for defaults.

@gemini-cli gemini-cli bot added the status/need-issue Pull requests that need to have an associated issue. label Mar 24, 2026
@abhipatel12 abhipatel12 enabled auto-merge March 24, 2026 15:46
@abhipatel12 abhipatel12 added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2026
@abhipatel12 abhipatel12 added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2026
@abhipatel12 abhipatel12 added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2026
@abhipatel12 abhipatel12 enabled auto-merge March 24, 2026 19:36
@abhipatel12 abhipatel12 added this pull request to the merge queue Mar 24, 2026
Merged via the queue into main with commit 055ff92 Mar 24, 2026
27 of 28 checks passed
@abhipatel12 abhipatel12 deleted the abhi/revert-disable-pr branch March 24, 2026 20:38
@abhipatel12
Copy link
Copy Markdown
Contributor Author

/patch preview

@github-actions
Copy link
Copy Markdown

🚀 [Step 1/4] Patch workflow(s) waiting for approval!

📋 Details:

  • Channels: preview
  • Commit: 055ff92276cffb57988cecf0f3ca3951413609b9
  • Workflows Created: 1

⏳ Status: The patch creation workflow has been triggered and is waiting for deployment approval. Please visit the specific workflow links below and approve the runs.

🔗 Track Progress:

@github-actions
Copy link
Copy Markdown

🚀 [Step 2/4] Patch PR Created!

📋 Patch Details:

📝 Next Steps:

  1. Review and approve the hotfix PR: #23723
  2. Once merged, the patch release will automatically trigger
  3. You'll receive updates here when the release completes

🔗 Track Progress:

@github-actions
Copy link
Copy Markdown

🚀 [Step 3/4] Patch Release Waiting for Approval!

📋 Release Details:

  • Environment: prod
  • Channel: preview → publishing to npm tag preview
  • Version: v0.36.0-preview.0
  • Hotfix PR: Merged ✅
  • Release Branch: release/v0.36.0-preview.0-pr-23672

⏳ Status: The patch release has been triggered and is waiting for deployment approval. Please visit the specific workflow run link below and approve the deployment. You'll receive another update when it completes.

🔗 Track Progress:

@github-actions
Copy link
Copy Markdown

[Step 4/4] Patch Release Failed!

📋 Details:

  • Version: 0.36.0-preview.1
  • Channel: preview
  • Error: The patch release workflow encountered an error

🔍 Next Steps:

  1. Check the workflow logs for detailed error information
  2. The maintainers have been notified via automatic issue creation
  3. You may need to retry the patch once the issue is resolved

🔗 Troubleshooting:

ProthamD pushed a commit to ProthamD/gemini-cli that referenced this pull request Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/need-issue Pull requests that need to have an associated issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants