refactor: allow GEMINI_CLI_USE_AGENT_PROTOCOL env to trigger agent use

This commit is contained in:
Michael Bleigh
2026-03-25 10:38:19 -07:00
parent 0afe5117a4
commit f85299717a
+4 -1
View File
@@ -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 {