fix(patch): cherry-pick 0ded546 to release/v0.10.0-preview.1-pr-11225 to patch version v0.10.0-preview.1 and create version 0.10.0-preview.2 (#11415)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
Shreya Keshive
2025-10-17 13:57:36 -07:00
committed by GitHub
parent fa1097dfed
commit a186083866
6 changed files with 144 additions and 10 deletions

View File

@@ -35,6 +35,7 @@ import {
SHELL_TOOL_NAMES,
resolveTelemetrySettings,
FatalConfigError,
getPty,
} from '@google/gemini-cli-core';
import type { Settings } from './settings.js';
@@ -684,6 +685,9 @@ export async function loadCliConfig(
argv.screenReader !== undefined
? argv.screenReader
: (settings.ui?.accessibility?.screenReader ?? false);
const ptyInfo = await getPty();
return new Config({
sessionId,
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
@@ -761,6 +765,7 @@ export async function loadCliConfig(
codebaseInvestigatorSettings:
settings.experimental?.codebaseInvestigatorSettings,
retryFetchErrors: settings.general?.retryFetchErrors ?? false,
ptyInfo: ptyInfo?.name,
});
}