mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 23:51:16 -07:00
Fixing broken tests, adding UI setting to docs
This commit is contained in:
@@ -179,6 +179,10 @@ their corresponding top-level category object in your `settings.json` file.
|
||||
- **Default:** `false`
|
||||
- **Requires restart:** Yes
|
||||
|
||||
- **`ui.showInlineThinking`** (boolean):
|
||||
- **Description:** Show model thinking summaries inline in the conversation.
|
||||
- **Default:** `false`
|
||||
|
||||
- **`ui.showStatusInTitle`** (boolean):
|
||||
- **Description:** Show Gemini CLI status and thoughts in the terminal window
|
||||
title
|
||||
|
||||
@@ -11,6 +11,16 @@ import { Box, Text } from 'ink';
|
||||
import type React from 'react';
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock('../contexts/SettingsContext.js', () => ({
|
||||
useSettings: () => ({
|
||||
merged: {
|
||||
ui: {
|
||||
showInlineThinking: false,
|
||||
},
|
||||
},
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock('../contexts/AppContext.js', () => ({
|
||||
useAppContext: () => ({
|
||||
version: '1.0.0',
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { render } from 'ink-testing-library';
|
||||
import { render } from '../../../test-utils/render.js';
|
||||
import { ThinkingMessage } from './ThinkingMessage.js';
|
||||
|
||||
describe('ThinkingMessage', () => {
|
||||
|
||||
@@ -187,6 +187,13 @@
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"showInlineThinking": {
|
||||
"title": "Show Inline Thinking",
|
||||
"description": "Show model thinking summaries inline in the conversation.",
|
||||
"markdownDescription": "Show model thinking summaries inline in the conversation.\n\n- Category: `UI`\n- Requires restart: `no`\n- Default: `false`",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"showStatusInTitle": {
|
||||
"title": "Show Status in Title",
|
||||
"description": "Show Gemini CLI status and thoughts in the terminal window title",
|
||||
|
||||
Reference in New Issue
Block a user