From 32e61529f5af0032c7c5558a940fb7591d179194 Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Fri, 6 Mar 2026 17:34:59 -0500 Subject: [PATCH] feat(cli): hide gemma settings from display and mark as experimental (#21471) --- docs/cli/settings.md | 1 - docs/reference/configuration.md | 4 ++-- packages/cli/src/config/settingsSchema.test.ts | 6 +++--- packages/cli/src/config/settingsSchema.ts | 6 +++--- schemas/settings.schema.json | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/cli/settings.md b/docs/cli/settings.md index d2680d65ad..7c7dee4e88 100644 --- a/docs/cli/settings.md +++ b/docs/cli/settings.md @@ -147,7 +147,6 @@ they appear in the UI. | Plan | `experimental.plan` | Enable planning features (Plan Mode and tools). | `false` | | Model Steering | `experimental.modelSteering` | Enable model steering (user hints) to guide the model during tool execution. | `false` | | Direct Web Fetch | `experimental.directWebFetch` | Enable web fetch behavior that bypasses LLM summarization. | `false` | -| Enable Gemma Model Router | `experimental.gemmaModelRouter.enabled` | Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim. | `false` | ### Skills diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 1f1299072b..73419a883a 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -1041,8 +1041,8 @@ their corresponding top-level category object in your `settings.json` file. - **Requires restart:** Yes - **`experimental.gemmaModelRouter.enabled`** (boolean): - - **Description:** Enable the Gemma Model Router. Requires a local endpoint - serving Gemma via the Gemini API using LiteRT-LM shim. + - **Description:** Enable the Gemma Model Router (experimental). Requires a + local endpoint serving Gemma via the Gemini API using LiteRT-LM shim. - **Default:** `false` - **Requires restart:** Yes diff --git a/packages/cli/src/config/settingsSchema.test.ts b/packages/cli/src/config/settingsSchema.test.ts index 17a916213f..389cabe3cf 100644 --- a/packages/cli/src/config/settingsSchema.test.ts +++ b/packages/cli/src/config/settingsSchema.test.ts @@ -461,7 +461,7 @@ describe('SettingsSchema', () => { expect(gemmaModelRouter.category).toBe('Experimental'); expect(gemmaModelRouter.default).toEqual({}); expect(gemmaModelRouter.requiresRestart).toBe(true); - expect(gemmaModelRouter.showInDialog).toBe(true); + expect(gemmaModelRouter.showInDialog).toBe(false); expect(gemmaModelRouter.description).toBe( 'Enable Gemma model router (experimental).', ); @@ -472,9 +472,9 @@ describe('SettingsSchema', () => { expect(enabled.category).toBe('Experimental'); expect(enabled.default).toBe(false); expect(enabled.requiresRestart).toBe(true); - expect(enabled.showInDialog).toBe(true); + expect(enabled.showInDialog).toBe(false); expect(enabled.description).toBe( - 'Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.', + 'Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.', ); const classifier = gemmaModelRouter.properties.classifier; diff --git a/packages/cli/src/config/settingsSchema.ts b/packages/cli/src/config/settingsSchema.ts index fbc50e8b39..59d28147c4 100644 --- a/packages/cli/src/config/settingsSchema.ts +++ b/packages/cli/src/config/settingsSchema.ts @@ -1863,7 +1863,7 @@ const SETTINGS_SCHEMA = { requiresRestart: true, default: {}, description: 'Enable Gemma model router (experimental).', - showInDialog: true, + showInDialog: false, properties: { enabled: { type: 'boolean', @@ -1872,8 +1872,8 @@ const SETTINGS_SCHEMA = { requiresRestart: true, default: false, description: - 'Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.', - showInDialog: true, + 'Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.', + showInDialog: false, }, classifier: { type: 'object', diff --git a/schemas/settings.schema.json b/schemas/settings.schema.json index 36816079ca..1df28cdac3 100644 --- a/schemas/settings.schema.json +++ b/schemas/settings.schema.json @@ -1747,8 +1747,8 @@ "properties": { "enabled": { "title": "Enable Gemma Model Router", - "description": "Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.", - "markdownDescription": "Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`", + "description": "Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.", + "markdownDescription": "Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`", "default": false, "type": "boolean" },