From 2b6766a58dd38dc5337b4b921b736a5f4cb804e3 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 30 Jun 2025 18:29:46 +0200 Subject: [PATCH] chore: fix shell --- internal/config/shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/shell.go b/internal/config/shell.go index 74931bfefc3a9e16e830fac2c3478a6f0d5396f2..b7c3c8c5a787def8ff28aec677193f5ac58b652a 100644 --- a/internal/config/shell.go +++ b/internal/config/shell.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/charmbracelet/crush/internal/llm/tools/shell" "github.com/charmbracelet/crush/internal/logging" + "github.com/charmbracelet/crush/internal/shell" ) // ExecuteCommand executes a shell command and returns the output @@ -18,7 +18,7 @@ func ExecuteCommand(ctx context.Context, command string, workingDir string) (str workingDir = WorkingDirectory() } - persistentShell := shell.GetPersistentShell(workingDir) + persistentShell := shell.NewShell(&shell.Options{WorkingDir: workingDir}) stdout, stderr, err := persistentShell.Exec(ctx, command) if err != nil {