remove unnecessary env var

This commit is contained in:
Shawn Morreau
2025-12-03 14:56:32 -05:00
parent 989a7c8960
commit 306285577e
-4
View File
@@ -165,8 +165,6 @@ export const gemini = agent({
args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt], args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt],
env: createAgentEnv({ env: createAgentEnv({
GEMINI_API_KEY: apiKey, GEMINI_API_KEY: apiKey,
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
}), }),
onStdout: async (chunk) => { onStdout: async (chunk) => {
const text = chunk.toString(); const text = chunk.toString();
@@ -252,8 +250,6 @@ function configureGeminiMcpServers({ mcpServers, cliPath }: ConfigureMcpServersP
encoding: "utf-8", encoding: "utf-8",
env: { env: {
...process.env, ...process.env,
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
}, },
}); });