mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 08:27:00 -07:00
feat(core): implement automatic terminal detection and capability warnings (#14426)
This commit is contained in:
@@ -88,7 +88,10 @@ const WARNING_CHECKS: readonly WarningCheck[] = [
|
||||
export async function getUserStartupWarnings(
|
||||
settings: Settings,
|
||||
workspaceRoot: string = process.cwd(),
|
||||
options?: { isAlternateBuffer?: boolean },
|
||||
options?: {
|
||||
isAlternateBuffer?: boolean;
|
||||
supportsKeyboardProtocol?: boolean;
|
||||
},
|
||||
): Promise<StartupWarning[]> {
|
||||
const results = await Promise.all(
|
||||
WARNING_CHECKS.map(async (check) => {
|
||||
@@ -109,6 +112,7 @@ export async function getUserStartupWarnings(
|
||||
warnings.push(
|
||||
...getCompatibilityWarnings({
|
||||
isAlternateBuffer: options?.isAlternateBuffer,
|
||||
supportsKeyboardProtocol: options?.supportsKeyboardProtocol,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user