mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 19:14:33 -07:00
03de28960f
- Support structured summaries and payloads in ToolGroupMessage/DenseToolMessage. - Add specialized box-layout rendering for file and read-many-files tools. - Refine tool state management in useGeminiStream during cancellations. - Update UI tests and snapshots to reflect new compact rendering styles.
416 lines
48 KiB
Plaintext
416 lines
48 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`SettingsDialog > Initial Rendering > should render settings list with visual indicators 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'accessibility settings enabled' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode true* │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'all boolean settings disabled' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false* │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true* │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false* │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false* │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'default state' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'file filtering settings configured' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'focused on scope selector' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ Vim Mode false │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ > Apply To │
|
|
│ ● 1. User Settings │
|
|
│ 2. Workspace Settings │
|
|
│ 3. System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'mixed boolean and number settings' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false* │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update false* │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'tools and security settings' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode false │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update true │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion false │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging false │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|
|
|
|
exports[`SettingsDialog > Snapshot Tests > should render 'various boolean settings enabled' correctly 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Settings │
|
|
│ │
|
|
│ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │
|
|
│ │ Search to filter │ │
|
|
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ ▲ │
|
|
│ ● Vim Mode true* │
|
|
│ Enable Vim keybindings │
|
|
│ │
|
|
│ Enable Auto Update false* │
|
|
│ Enable automatic updates. │
|
|
│ │
|
|
│ Enable Prompt Completion true* │
|
|
│ Enable AI-powered prompt completion suggestions while typing. │
|
|
│ │
|
|
│ Debug Keystroke Logging true* │
|
|
│ Enable debug logging of keystrokes to the console. │
|
|
│ │
|
|
│ Enable Session Cleanup false │
|
|
│ Enable automatic session cleanup │
|
|
│ │
|
|
│ Output Format Text │
|
|
│ The format of the CLI output. Can be \`text\` or \`json\`. │
|
|
│ │
|
|
│ Auto Theme Switching true │
|
|
│ Automatically switch between default light and dark themes based on terminal backgro… │
|
|
│ │
|
|
│ Terminal Background Polling Interval 60 │
|
|
│ Interval in seconds to poll the terminal background color. │
|
|
│ │
|
|
│ ▼ │
|
|
│ │
|
|
│ Apply To │
|
|
│ ● User Settings │
|
|
│ Workspace Settings │
|
|
│ System Settings │
|
|
│ │
|
|
│ (Use Enter to select, Ctrl+L to reset, Tab to change focus, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
|
|
`;
|