diff --git a/.changeset/fix-disable-zsh-history-expansion.md b/.changeset/fix-disable-zsh-history-expansion.md new file mode 100644 index 00000000000..b63fc7988e2 --- /dev/null +++ b/.changeset/fix-disable-zsh-history-expansion.md @@ -0,0 +1,5 @@ +--- +"kilo-code": patch +--- + +fix: disable zsh history expansion (#4926) diff --git a/src/integrations/terminal/ShellIntegrationManager.ts b/src/integrations/terminal/ShellIntegrationManager.ts index ce747438516..7ca5fb192f6 100644 --- a/src/integrations/terminal/ShellIntegrationManager.ts +++ b/src/integrations/terminal/ShellIntegrationManager.ts @@ -36,6 +36,10 @@ export class ShellIntegrationManager { const zshrcContent = ` source "${shellIntegrationPath}" + # Disable history expansion (!) to prevent commands with ! from failing + # Fixes issue where commands like --collectCoverageFrom="!pattern" would fail + # with "event not found" error + setopt NO_BANG_HIST ZDOTDIR=\${ROO_ZDOTDIR:-$HOME} unset ROO_ZDOTDIR [ -f "$ZDOTDIR/.zshenv" ] && source "$ZDOTDIR/.zshenv"