2026-01-23 20:32:35 -05:00
|
|
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
|
|
2026-01-28 13:23:51 -08:00
|
|
|
exports[`ToolConfirmationQueue > calculates availableContentHeight based on availableTerminalHeight from UI state 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
2026-01-30 13:32:21 -05:00
|
|
|
│ Action Required │
|
2026-01-28 13:23:51 -08:00
|
|
|
│ │
|
|
|
|
|
│ ? replace edit file │
|
|
|
|
|
│ │
|
2026-02-27 10:02:46 -05:00
|
|
|
│ ... 49 hidden (Ctrl+O) ... │
|
2026-01-28 13:23:51 -08:00
|
|
|
│ 50 line │
|
|
|
|
|
│ Apply this change? │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Allow once │
|
|
|
|
|
│ 2. Allow for this session │
|
|
|
|
|
│ 3. Modify with external editor │
|
|
|
|
|
│ 4. No, suggest changes (esc) │
|
|
|
|
|
│ │
|
|
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
2026-03-07 11:04:22 -08:00
|
|
|
Press Ctrl+O to show more lines
|
2026-02-18 16:46:50 -08:00
|
|
|
"
|
2026-01-28 13:23:51 -08:00
|
|
|
`;
|
|
|
|
|
|
2026-01-27 16:06:24 -08:00
|
|
|
exports[`ToolConfirmationQueue > does not render expansion hint when constrainHeight is false 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
2026-01-30 13:32:21 -05:00
|
|
|
│ Action Required │
|
2026-01-27 16:06:24 -08:00
|
|
|
│ │
|
|
|
|
|
│ ? replace edit file │
|
|
|
|
|
│ │
|
|
|
|
|
│ ╭──────────────────────────────────────────────────────────────────────────╮ │
|
|
|
|
|
│ │ │ │
|
|
|
|
|
│ │ No changes detected. │ │
|
|
|
|
|
│ │ │ │
|
|
|
|
|
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
|
|
|
|
|
│ Apply this change? │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Allow once │
|
|
|
|
|
│ 2. Allow for this session │
|
|
|
|
|
│ 3. Modify with external editor │
|
|
|
|
|
│ 4. No, suggest changes (esc) │
|
|
|
|
|
│ │
|
2026-02-18 16:46:50 -08:00
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
|
"
|
2026-02-18 10:52:30 -05:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`ToolConfirmationQueue > provides more height for ask_user by subtracting less overhead 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
|
│ Answer Questions │
|
|
|
|
|
│ │
|
|
|
|
|
│ Line 1 │
|
|
|
|
|
│ Line 2 │
|
|
|
|
|
│ Line 3 │
|
|
|
|
|
│ Line 4 │
|
|
|
|
|
│ Line 5 │
|
|
|
|
|
│ Line 6 │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Option 1 │
|
|
|
|
|
│ Desc │
|
|
|
|
|
│ 2. Enter a custom value │
|
|
|
|
|
│ │
|
|
|
|
|
│ Enter to select · ↑/↓ to navigate · Esc to cancel │
|
2026-02-18 16:46:50 -08:00
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
|
"
|
2026-01-27 16:06:24 -08:00
|
|
|
`;
|
|
|
|
|
|
2026-02-12 16:10:25 -05:00
|
|
|
exports[`ToolConfirmationQueue > renders AskUser tool confirmation with Success color 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
|
│ Answer Questions │
|
|
|
|
|
│ │
|
|
|
|
|
│ Review your answers: │
|
|
|
|
|
│ │
|
|
|
|
|
│ │
|
|
|
|
|
│ Enter to submit · Tab/Shift+Tab to edit answers · Esc to cancel │
|
2026-02-18 16:46:50 -08:00
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
|
"
|
2026-02-12 16:10:25 -05:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`ToolConfirmationQueue > renders ExitPlanMode tool confirmation with Success color 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
|
│ Ready to start implementation? │
|
|
|
|
|
│ │
|
|
|
|
|
│ Plan content goes here │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Yes, automatically accept edits │
|
|
|
|
|
│ Approves plan and allows tools to run automatically │
|
|
|
|
|
│ 2. Yes, manually accept edits │
|
|
|
|
|
│ Approves plan but requires confirmation for each tool │
|
|
|
|
|
│ 3. Type your feedback... │
|
|
|
|
|
│ │
|
2026-02-25 23:38:44 -05:00
|
|
|
│ Enter to select · ↑/↓ to navigate · Ctrl+X to edit plan · Esc to cancel │
|
2026-02-18 16:46:50 -08:00
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
|
"
|
2026-02-12 16:10:25 -05:00
|
|
|
`;
|
|
|
|
|
|
2026-01-27 16:06:24 -08:00
|
|
|
exports[`ToolConfirmationQueue > renders expansion hint when content is long and constrained 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
2026-01-30 13:32:21 -05:00
|
|
|
│ Action Required │
|
2026-01-27 16:06:24 -08:00
|
|
|
│ │
|
|
|
|
|
│ ? replace edit file │
|
|
|
|
|
│ │
|
2026-02-27 10:02:46 -05:00
|
|
|
│ ... 49 hidden (Ctrl+O) ... │
|
2026-01-27 16:06:24 -08:00
|
|
|
│ 50 line │
|
|
|
|
|
│ Apply this change? │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Allow once │
|
|
|
|
|
│ 2. Allow for this session │
|
|
|
|
|
│ 3. Modify with external editor │
|
|
|
|
|
│ 4. No, suggest changes (esc) │
|
|
|
|
|
│ │
|
|
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
2026-02-20 16:26:11 -08:00
|
|
|
Press Ctrl+O to show more lines
|
2026-01-27 16:06:24 -08:00
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
2026-01-23 20:32:35 -05:00
|
|
|
exports[`ToolConfirmationQueue > renders the confirming tool with progress indicator 1`] = `
|
|
|
|
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
|
│ Action Required 1 of 3 │
|
|
|
|
|
│ │
|
|
|
|
|
│ ? ls list files │
|
|
|
|
|
│ │
|
|
|
|
|
│ ls │
|
|
|
|
|
│ Allow execution of: 'ls'? │
|
|
|
|
|
│ │
|
|
|
|
|
│ ● 1. Allow once │
|
|
|
|
|
│ 2. Allow for this session │
|
|
|
|
|
│ 3. No, suggest changes (esc) │
|
|
|
|
|
│ │
|
2026-02-18 16:46:50 -08:00
|
|
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
|
"
|
2026-01-23 20:32:35 -05:00
|
|
|
`;
|