diff --git a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-handle-security-warning-height-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-handle-security-warning-height-correctly.snap.svg index 8e57fe107e..70bd4548f5 100644 --- a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-handle-security-warning-height-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-handle-security-warning-height-correctly.snap.svg @@ -4,110 +4,110 @@ - ╭──────────────────────────────────────────────────────────────────────────────╮ - + ╭──────────────────────────────────────────────────────────────────────────────╮ + ? Shell Executes a bash command with a deceptive URL - 3 of 3 - - - ... 6 hidden (Ctrl+O) ... - - - + 3 of 3 + + + ... 6 hidden (Ctrl+O) ... + + + echo - "Line 44" - - - - + "Line 45" + + + + echo - "Line 45" - - - - + "Line 46" + + + + echo - "Line 46" - - - - + "Line 47" + + + + echo - "Line 47" - - - - + "Line 48" + + + + echo - "Line 48" - - - - + "Line 49" + + + + echo - "Line 49" - - - - - echo - "Line 50" - - - - - curl https://täst.com - - - - ╰──────────────────────────────────────────────────────────────────────────╯ - - - - - - Warning: - Deceptive URL(s) detected: - - - - - Original: - https://täst.com/ - - - Actual Host (Punycode): - https://xn--tst-qla.com/ - - - - - Allow execution of - [echo] - ? - - - - - - - - - 1. - - - Allow once - - - - 2. - Allow for this session - - - 3. + "Line 50" + + + + + curl https://täst.com + + + + ╰──────────────────────────────────────────────────────────────────────────╯ + + + + + + Warning: + Deceptive URL(s) detected: + + + + + Original: + https://täst.com/ + + + Actual Host (Punycode): + https://xn--tst-qla.com/ + + + + + Allow execution of + [echo] + ? + + + + + + + + + 1. + + + Allow once + + + + 2. + Allow for this session + + + 3. + Allow this command for all future sessions + ~/.gemini/policies/auto-sav + + + + 4. No, suggest changes (esc) - - ╰──────────────────────────────────────────────────────────────────────────────╯ + + ╰──────────────────────────────────────────────────────────────────────────────╯ \ No newline at end of file diff --git a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-edit-diffs.snap.svg b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-edit-diffs.snap.svg index a257a1253c..c192a63c85 100644 --- a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-edit-diffs.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-edit-diffs.snap.svg @@ -4,541 +4,528 @@ - ╭──────────────────────────────────────────────────────────────────────────────╮ - + ╭──────────────────────────────────────────────────────────────────────────────╮ + ? replace Replaces content in a file - - - ╭──────────────────────────────────────────────────────────────────────────╮ - - - - ... 13 hidden (Ctrl+O) ... - - - - - - - 7 - - - + - - + + + ╭──────────────────────────────────────────────────────────────────────────╮ + + + + ... 14 hidden (Ctrl+O) ... + + + + + + + 8 + + + - + + const - - newLine7 = - + + oldLine8 = + true - + ; - - - - - - - 8 - - - - - - + + + + + + + 8 + + + + + + const - - oldLine8 = - + + newLine8 = + true - + ; - - - - - - - 8 - - - + - - + + + + + + + 9 + + + - + + const - - newLine8 = - + + oldLine9 = + true - + ; - - - - - - - 9 - - - - - - + + + + + + + 9 + + + + + + const - - oldLine9 = - + + newLine9 = + true - + ; - - - - - - - 9 - - - + - - + + + + + + 10 + + + - + + const - - newLine9 = - - true - - ; - - - - - - 10 - - - - - - + + oldLine10 = + + true + + ; + + + + + + 10 + + + + + + const - - oldLine10 = - + + newLine10 = + true - + ; - - - - - - 10 - - - + - - + + + + + + 11 + + + - + + const - - newLine10 = - + + oldLine11 = + true - + ; - - - - - - 11 - - - - - - + + + + + + 11 + + + + + + const - - oldLine11 = - + + newLine11 = + true - + ; - - - - - - 11 - - - + - - + + + + + + 12 + + + - + + const - - newLine11 = - + + oldLine12 = + true - + ; - - - - - - 12 - - - - - - + + + + + + 12 + + + + + + const - - oldLine12 = - + + newLine12 = + true - + ; - - - - - - 12 - - - + - - + + + + + + 13 + + + - + + const - - newLine12 = - + + oldLine13 = + true - + ; - - - - - - 13 - - - - - - + + + + + + 13 + + + + + + const - - oldLine13 = - + + newLine13 = + true - + ; - - - - - - 13 - - - + - - + + + + + + 14 + + + - + + const - - newLine13 = - + + oldLine14 = + true - + ; - - - - - - 14 - - - - - - + + + + + + 14 + + + + + + const - - oldLine14 = - + + newLine14 = + true - + ; - - - - - - 14 - - - + - - + + + + + + 15 + + + - + + const - - newLine14 = - + + oldLine15 = + true - + ; - - - - - - 15 - - - - - - + + + + + + 15 + + + + + + const - - oldLine15 = - + + newLine15 = + true - + ; - - - - - - 15 - - - + - - + + + + + + 16 + + + - + + const - - newLine15 = - + + oldLine16 = + true - + ; - - - - - - 16 - - - - - - + + + + + + 16 + + + + + + const - - oldLine16 = - + + newLine16 = + true - + ; - - - - - - 16 - - - + - - + + + + + + 17 + + + - + + const - - newLine16 = - + + oldLine17 = + true - + ; - - - - - - 17 - - - - - - + + + + + + 17 + + + + + + const - - oldLine17 = - + + newLine17 = + true - + ; - - - - - - 17 - - - + - - + + + + + + 18 + + + - + + const - - newLine17 = - + + oldLine18 = + true - + ; - - - - - - 18 - - - - - - + + + + + + 18 + + + + + + const - - oldLine18 = - + + newLine18 = + true - + ; - - - - - - 18 - - - + - - + + + + + + 19 + + + - + + const - - newLine18 = - + + oldLine19 = + true - + ; - - - - - - 19 - - - - - - + + + + + + 19 + + + + + + const - - oldLine19 = - + + newLine19 = + true - + ; - - - - - - 19 - - - + - - + + + + + + 20 + + + - + + const - - newLine19 = - + + oldLine20 = + true - + ; - - - - - - 20 - - - - - - + + + + + + 20 + + + + + + const - - oldLine20 = - + + newLine20 = + true - + ; - - - - - - 20 - - - + - - - const - - newLine20 = - - true - - ; - - - - ╰──────────────────────────────────────────────────────────────────────────╯ - - - Apply this change? - - - - - - - - - 1. - - - Allow once - - - - 2. - Allow for this session - - - 3. + + + + ╰──────────────────────────────────────────────────────────────────────────╯ + + + Apply this change? + + + + + + + + + 1. + + + Allow once + + + + 2. + Allow for this session + + + 3. + Allow for this file in all future sessions + ~/.gemini/policies/auto-sav + + + + 4. Modify with external editor - - - 4. + + + 5. No, suggest changes (esc) - - ╰──────────────────────────────────────────────────────────────────────────────╯ + + ╰──────────────────────────────────────────────────────────────────────────────╯ \ No newline at end of file diff --git a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-exec-commands.snap.svg b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-exec-commands.snap.svg index 3f2d8451a8..7838dc9163 100644 --- a/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-exec-commands.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-exec-commands.snap.svg @@ -4,217 +4,217 @@ - ╭──────────────────────────────────────────────────────────────────────────────╮ - + ╭──────────────────────────────────────────────────────────────────────────────╮ + ? Shell Executes a bash command - 2 of 3 - - - ╭──────────────────────────────────────────────────────────────────────────╮ - - - - ... 22 hidden (Ctrl+O) ... - - - - + 2 of 3 + + + ╭──────────────────────────────────────────────────────────────────────────╮ + + + + ... 23 hidden (Ctrl+O) ... + + + + echo - "Line 23" - - - - + "Line 24" + + + + echo - "Line 24" - - - - + "Line 25" + + + + echo - "Line 25" - - - - + "Line 26" + + + + echo - "Line 26" - - - - + "Line 27" + + + + echo - "Line 27" - - - - + "Line 28" + + + + echo - "Line 28" - - - - + "Line 29" + + + + echo - "Line 29" - - - - + "Line 30" + + + + echo - "Line 30" - - - - + "Line 31" + + + + echo - "Line 31" - - - - + "Line 32" + + + + echo - "Line 32" - - - - + "Line 33" + + + + echo - "Line 33" - - - - + "Line 34" + + + + echo - "Line 34" - - - - + "Line 35" + + + + echo - "Line 35" - - - - + "Line 36" + + + + echo - "Line 36" - - - - + "Line 37" + + + + echo - "Line 37" - - - - + "Line 38" + + + + echo - "Line 38" - - - - + "Line 39" + + + + echo - "Line 39" - - - - + "Line 40" + + + + echo - "Line 40" - - - - + "Line 41" + + + + echo - "Line 41" - - - - + "Line 42" + + + + echo - "Line 42" - - - - + "Line 43" + + + + echo - "Line 43" - - - - + "Line 44" + + + + echo - "Line 44" - - - - + "Line 45" + + + + echo - "Line 45" - - - - + "Line 46" + + + + echo - "Line 46" - - - - + "Line 47" + + + + echo - "Line 47" - - - - + "Line 48" + + + + echo - "Line 48" - - - - + "Line 49" + + + + echo - "Line 49" - - - - - echo - "Line 50" - - - - ╰──────────────────────────────────────────────────────────────────────────╯ - - - Allow execution of - [echo] - ? - - - - - - - - - 1. - - - Allow once - - - - 2. - Allow for this session - - - 3. + "Line 50" + + + + ╰──────────────────────────────────────────────────────────────────────────╯ + + + Allow execution of + [echo] + ? + + + + + + + + + 1. + + + Allow once + + + + 2. + Allow for this session + + + 3. + Allow this command for all future sessions + ~/.gemini/policies/auto-sav + + + + 4. No, suggest changes (esc) - - ╰──────────────────────────────────────────────────────────────────────────────╯ + + ╰──────────────────────────────────────────────────────────────────────────────╯ \ No newline at end of file diff --git a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-edit-diffs.snap.svg b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-edit-diffs.snap.svg index ffc73fdd5e..b511f8fffc 100644 --- a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-edit-diffs.snap.svg +++ b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-edit-diffs.snap.svg @@ -4,514 +4,500 @@ - ╭──────────────────────────────────────────────────────────────────────────────╮ - - ... 10 hidden (Ctrl+O) ... - - - - - 6 - - - - - - + ╭──────────────────────────────────────────────────────────────────────────────╮ + + ... 11 hidden (Ctrl+O) ... + + + + + 6 + + + + + + const - - oldLine6 = - + + newLine6 = + true - + ; - - - - - 6 - - - + - - + + + + + 7 + + + - + + const - - newLine6 = - + + oldLine7 = + true - + ; - - - - - 7 - - - - - - + + + + + 7 + + + + + + const - - oldLine7 = - + + newLine7 = + true - + ; - - - - - 7 - - - + - - + + + + + 8 + + + - + + const - - newLine7 = - + + oldLine8 = + true - + ; - - - - - 8 - - - - - - + + + + + 8 + + + + + + const - - oldLine8 = - + + newLine8 = + true - + ; - - - - - 8 - - - + - - + + + + + 9 + + + - + + const - - newLine8 = - + + oldLine9 = + true - + ; - - - - - 9 - - - - - - + + + + + 9 + + + + + + const - - oldLine9 = - + + newLine9 = + true - + ; - - - - - 9 - - - + - - + + + + 10 + + + - + + const - - newLine9 = - - true - - ; - - - - 10 - - - - - - + + oldLine10 = + + true + + ; + + + + 10 + + + + + + const - - oldLine10 = - + + newLine10 = + true - + ; - - - - 10 - - - + - - + + + + 11 + + + - + + const - - newLine10 = - + + oldLine11 = + true - + ; - - - - 11 - - - - - - + + + + 11 + + + + + + const - - oldLine11 = - + + newLine11 = + true - + ; - - - - 11 - - - + - - + + + + 12 + + + - + + const - - newLine11 = - + + oldLine12 = + true - + ; - - - - 12 - - - - - - + + + + 12 + + + + + + const - - oldLine12 = - + + newLine12 = + true - + ; - - - - 12 - - - + - - + + + + 13 + + + - + + const - - newLine12 = - + + oldLine13 = + true - + ; - - - - 13 - - - - - - + + + + 13 + + + + + + const - - oldLine13 = - + + newLine13 = + true - + ; - - - - 13 - - - + - - + + + + 14 + + + - + + const - - newLine13 = - + + oldLine14 = + true - + ; - - - - 14 - - - - - - + + + + 14 + + + + + + const - - oldLine14 = - + + newLine14 = + true - + ; - - - - 14 - - - + - - + + + + 15 + + + - + + const - - newLine14 = - + + oldLine15 = + true - + ; - - - - 15 - - - - - - + + + + 15 + + + + + + const - - oldLine15 = - + + newLine15 = + true - + ; - - - - 15 - - - + - - + + + + 16 + + + - + + const - - newLine15 = - + + oldLine16 = + true - + ; - - - - 16 - - - - - - + + + + 16 + + + + + + const - - oldLine16 = - + + newLine16 = + true - + ; - - - - 16 - - - + - - + + + + 17 + + + - + + const - - newLine16 = - + + oldLine17 = + true - + ; - - - - 17 - - - - - - + + + + 17 + + + + + + const - - oldLine17 = - + + newLine17 = + true - + ; - - - - 17 - - - + - - + + + + 18 + + + - + + const - - newLine17 = - + + oldLine18 = + true - + ; - - - - 18 - - - - - - + + + + 18 + + + + + + const - - oldLine18 = - + + newLine18 = + true - + ; - - - - 18 - - - + - - + + + + 19 + + + - + + const - - newLine18 = - + + oldLine19 = + true - + ; - - - - 19 - - - - - - + + + + 19 + + + + + + const - - oldLine19 = - + + newLine19 = + true - + ; - - - - 19 - - - + - - + + + + 20 + + + - + + const - - newLine19 = - + + oldLine20 = + true - + ; - - - - 20 - - - - - - + + + + 20 + + + + + + const - - oldLine20 = - + + newLine20 = + true - + ; - - - - 20 - - - + - - - const - - newLine20 = - - true - - ; - - ╰──────────────────────────────────────────────────────────────────────────────╯ - Apply this change? - - - - - 1. - - - Allow once - - 2. - Allow for this session - 3. + + ╰──────────────────────────────────────────────────────────────────────────────╯ + Apply this change? + + + + + 1. + + + Allow once + + 2. + Allow for this session + 3. + Allow for this file in all future sessions + ~/.gemini/policies/auto-saved.toml + 4. Modify with external editor - 4. + 5. No, suggest changes (esc) \ No newline at end of file diff --git a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-exec-commands.snap.svg b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-exec-commands.snap.svg index 68e2eb2247..5355e16de0 100644 --- a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-exec-commands.snap.svg +++ b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-height-allocation-and-layout-should-expand-to-available-height-for-large-exec-commands.snap.svg @@ -4,148 +4,147 @@ - ╭──────────────────────────────────────────────────────────────────────────────╮ - - ... 19 hidden (Ctrl+O) ... - - + ╭──────────────────────────────────────────────────────────────────────────────╮ + + ... 20 hidden (Ctrl+O) ... + + echo - "Line 20" - - + "Line 21" + + echo - "Line 21" - - + "Line 22" + + echo - "Line 22" - - + "Line 23" + + echo - "Line 23" - - + "Line 24" + + echo - "Line 24" - - + "Line 25" + + echo - "Line 25" - - + "Line 26" + + echo - "Line 26" - - + "Line 27" + + echo - "Line 27" - - + "Line 28" + + echo - "Line 28" - - + "Line 29" + + echo - "Line 29" - - + "Line 30" + + echo - "Line 30" - - + "Line 31" + + echo - "Line 31" - - + "Line 32" + + echo - "Line 32" - - + "Line 33" + + echo - "Line 33" - - + "Line 34" + + echo - "Line 34" - - + "Line 35" + + echo - "Line 35" - - + "Line 36" + + echo - "Line 36" - - + "Line 37" + + echo - "Line 37" - - + "Line 38" + + echo - "Line 38" - - + "Line 39" + + echo - "Line 39" - - + "Line 40" + + echo - "Line 40" - - + "Line 41" + + echo - "Line 41" - - + "Line 42" + + echo - "Line 42" - - + "Line 43" + + echo - "Line 43" - - + "Line 44" + + echo - "Line 44" - - + "Line 45" + + echo - "Line 45" - - + "Line 46" + + echo - "Line 46" - - + "Line 47" + + echo - "Line 47" - - + "Line 48" + + echo - "Line 48" - - + "Line 49" + + echo - "Line 49" - - - echo - "Line 50" - - ╰──────────────────────────────────────────────────────────────────────────────╯ - Allow execution of [echo]? - - - - - 1. - - - Allow once - - 2. - Allow for this session - 3. + "Line 50" + + ╰──────────────────────────────────────────────────────────────────────────────╯ + Allow execution of [echo]? + + + + + 1. + + + Allow once + + 2. + Allow for this session + 3. + Allow this command for all future sessions + ~/.gemini/policies/auto-saved.toml + 4. No, suggest changes (esc) \ No newline at end of file diff --git a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-should-render-multiline-shell-scripts-with-correct-newlines-and-syntax-highlighting.snap.svg b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-should-render-multiline-shell-scripts-with-correct-newlines-and-syntax-highlighting.snap.svg index a30b871f41..0439731934 100644 --- a/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-should-render-multiline-shell-scripts-with-correct-newlines-and-syntax-highlighting.snap.svg +++ b/packages/cli/src/ui/components/messages/__snapshots__/ToolConfirmationMessage-ToolConfirmationMessage-should-render-multiline-shell-scripts-with-correct-newlines-and-syntax-highlighting.snap.svg @@ -1,42 +1,45 @@ - + - + - ╭──────────────────────────────────────────────────────────────────────────────╮ - + ╭──────────────────────────────────────────────────────────────────────────────╮ + echo "hello" - - + + for i in 1 2 3; do - - + + echo $i - - + + done - - ╰──────────────────────────────────────────────────────────────────────────────╯ + + ╰──────────────────────────────────────────────────────────────────────────────╯ Allow execution of [echo]? - + - - + + 1. - - + + Allow once - + 2. Allow for this session 3. - No, suggest changes (esc) + Allow this command for all future sessions + ~/.gemini/policies/auto-saved.toml + 4. + No, suggest changes (esc) \ No newline at end of file