Fixing broken tests, adding UI setting to docs

This commit is contained in:
Dmitry Lyalin
2025-12-31 15:09:51 -05:00
parent 3aefc66b7b
commit 3a513f9890
4 changed files with 22 additions and 1 deletions

View File

@@ -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

View File

@@ -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',

View File

@@ -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', () => {

View File

@@ -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",