mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 23:51:16 -07:00
Add inline thinking mode helper
This commit is contained in:
29
packages/cli/src/ui/utils/inlineThinkingMode.ts
Normal file
29
packages/cli/src/ui/utils/inlineThinkingMode.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2026 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import type { LoadedSettings } from '../../config/settings.js';
|
||||
|
||||
export type InlineThinkingMode = 'off' | 'summary' | 'full';
|
||||
|
||||
export function getInlineThinkingMode(
|
||||
settings: LoadedSettings,
|
||||
): InlineThinkingMode {
|
||||
const ui = settings.merged.ui;
|
||||
|
||||
if (ui?.showInlineThinkingFull) {
|
||||
return 'full';
|
||||
}
|
||||
|
||||
if (ui?.showInlineThinkingSummary) {
|
||||
return 'summary';
|
||||
}
|
||||
|
||||
if (ui?.showInlineThinking) {
|
||||
return 'full';
|
||||
}
|
||||
|
||||
return 'off';
|
||||
}
|
||||
Reference in New Issue
Block a user