From f85299717a74b2c712a5159626f73d9b391085b1 Mon Sep 17 00:00:00 2001 From: Michael Bleigh Date: Wed, 25 Mar 2026 10:38:19 -0700 Subject: [PATCH] refactor: allow GEMINI_CLI_USE_AGENT_PROTOCOL env to trigger agent use --- packages/core/src/config/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 159052dddf..6c1c539f4e 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -2302,7 +2302,10 @@ export class Config implements McpContext, AgentLoopContext { } getExperimentalUseAgentProtocol(): boolean { - return this.useAgentProtocol; + return ( + this.useAgentProtocol || + process.env['GEMINI_CLI_USE_AGENT_PROTOCOL'] === 'true' + ); } isTopicUpdateNarrationEnabled(): boolean {