Skip to content

fix(patch): cherry-pick 07e2053 to release/v0.36.0-preview.7-pr-24282#24426

Closed
gemini-cli-robot wants to merge 2 commits intorelease/v0.36.0-preview.7-pr-24282from
hotfix/v0.36.0-preview.7/0.36.0-preview.8/preview/cherry-pick-07e2053/pr-24282
Closed

fix(patch): cherry-pick 07e2053 to release/v0.36.0-preview.7-pr-24282#24426
gemini-cli-robot wants to merge 2 commits intorelease/v0.36.0-preview.7-pr-24282from
hotfix/v0.36.0-preview.7/0.36.0-preview.8/preview/cherry-pick-07e2053/pr-24282

Conversation

@gemini-cli-robot
Copy link
Copy Markdown
Collaborator

@gemini-cli-robot gemini-cli-robot commented Apr 1, 2026

This PR cherry-picks commit 07e2053 to patch version v0.36.0-preview.7 in the preview release to create version 0.36.0-preview.8. This ensures that the planning feature improvements are included in the upcoming preview release.

@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 promotes the planning feature from an experimental status to a stable feature. It involves restructuring the configuration settings to move the plan mode toggle under the general settings category, ensuring proper migration of existing user settings, and updating all relevant documentation, tests, and UI components to support this change.

Highlights

  • Configuration Migration: Migrated the 'experimental.plan' setting to 'general.plan.enabled' to promote the planning feature to stable.
  • Schema Updates: Updated the configuration schema to reflect the new location and structure of the plan mode setting.
  • Codebase Adjustments: Updated internal references, integration tests, and UI snapshots to align with the new configuration structure.
Ignored Files
  • Ignored by pattern: .gemini/** (1)
    • .gemini/settings.json
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 Apr 1, 2026

Size Change: +693 B (0%)

Total Size: 26.3 MB

Filename Size Change
./bundle/chunk-AQ42MHDE.js 0 B -3.64 MB (removed) 🏆
./bundle/chunk-CEJK6BLO.js 0 B -14.6 MB (removed) 🏆
./bundle/core-N4DBRSQI.js 0 B -43.5 kB (removed) 🏆
./bundle/devtoolsService-KX5SILSR.js 0 B -27.7 kB (removed) 🏆
./bundle/interactiveCli-4TLIXVCN.js 0 B -1.62 MB (removed) 🏆
./bundle/oauth2-provider-BPEZNLHC.js 0 B -9.16 kB (removed) 🏆
./bundle/chunk-M2HU3AQH.js 14.6 MB +14.6 MB (new file) 🆕
./bundle/chunk-PINI473W.js 3.64 MB +3.64 MB (new file) 🆕
./bundle/core-FG4VXPNK.js 43.5 kB +43.5 kB (new file) 🆕
./bundle/devtoolsService-PSGAMNRV.js 27.7 kB +27.7 kB (new file) 🆕
./bundle/interactiveCli-YCABZX4H.js 1.62 MB +1.62 MB (new file) 🆕
./bundle/oauth2-provider-LJOOUTVZ.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-MYI75E6G.js 1.96 MB 0 B
./bundle/chunk-RJTRUG2J.js 39.8 kB 0 B
./bundle/devtools-36NN55EP.js 696 kB 0 B
./bundle/dist-T73EYRDX.js 356 B 0 B
./bundle/gemini.js 522 kB -8 B (0%)
./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-FCEPFZ3M.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

compressed-size-action

@jerop jerop changed the title fix(patch): cherry-pick 07e2053 to release/v0.36.0-preview.7-pr-24282 [CONFLICTS] fix(patch): cherry-pick 07e2053 to release/v0.36.0-preview.7-pr-24282 Apr 1, 2026
@jerop jerop enabled auto-merge (squash) April 1, 2026 13:50
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 promotes the 'Plan Mode' feature to stable by migrating its configuration from experimental.plan to general.plan.enabled. The changes encompass updates to documentation, configuration schemas, migration logic, and associated tests. Review feedback identifies two high-severity issues: unresolved merge conflict markers in the settings documentation and a bug in the experimental settings migration logic that could cause data loss by unintentionally clearing agent overrides.

I am having trouble creating individual review comments. Click here to see my feedback.

docs/cli/settings.md (32-39)

high

The file contains unresolved merge conflict markers. These must be resolved before the pull request can be merged. The incoming changes (from the feature branch) appear to contain the desired updates for the planning feature promotion.

| Enable Notifications    | `general.enableNotifications`      | Enable run-event notifications for action-required prompts and session completion.                                                                                                                                                                            | `false`     |
| Enable Plan Mode        | `general.plan.enabled`             | Enable Plan Mode for read-only safety during planning.                                                                                                                                                                                                        | `true`      |
| Plan Directory          | `general.plan.directory`           | The directory where planning artifacts are stored. If not specified, defaults to the system temporary directory. A custom directory requires a policy to allow write access in Plan Mode.                                                                     | `undefined` |

packages/cli/src/config/settings.ts (1219-1220)

high

This logic is problematic because the modified flag is shared across all experimental migrations. Since modified is now also set when the plan setting is migrated, this agents update will run even if no agent-related settings were changed.

If agentsOverrides is empty (which happens if no agent experimental settings are found), this assignment will overwrite and clear any existing agents.overrides in the user's configuration, leading to data loss.

Per the general rules, you should use a merge operation (spread syntax) instead of direct assignment, and the update should be guarded to only occur if agent-specific changes were actually made.

      if (Object.keys(agentsOverrides).length > 0) {
        agentsSettings['overrides'] = {
          ...((agentsSettings['overrides'] as Record<string, unknown>) || {}),
          ...agentsOverrides,
        };
        loadedSettings.setValue(scope, 'agents', agentsSettings);
      }

@jerop
Copy link
Copy Markdown
Contributor

jerop commented Apr 1, 2026

turns out preview release has not been cut yet, so just stopping this patch

@jerop jerop closed this Apr 1, 2026
auto-merge was automatically disabled April 1, 2026 13:57

Pull request was closed

@jerop jerop deleted the hotfix/v0.36.0-preview.7/0.36.0-preview.8/preview/cherry-pick-07e2053/pr-24282 branch April 1, 2026 16:18
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.

3 participants