@@ -7,8 +7,8 @@ import (
10− "github.com/charmbracelet/crush/internal/llm/tools/shell"
11 "github.com/charmbracelet/crush/internal/logging"
10 "github.com/charmbracelet/crush/internal/logging"
11+ "github.com/charmbracelet/crush/internal/shell"
14// ExecuteCommand executes a shell command and returns the output
14// ExecuteCommand executes a shell command and returns the output
@@ -18,7 +18,7 @@ func ExecuteCommand(ctx context.Context, command string, workingDir string) (str
18 workingDir = WorkingDirectory()
18 workingDir = WorkingDirectory()
21− persistentShell := shell.GetPersistentShell(workingDir)
21+ persistentShell := shell.NewShell(&shell.Options{WorkingDir: workingDir})
23 stdout, stderr, err := persistentShell.Exec(ctx, command)
23 stdout, stderr, err := persistentShell.Exec(ctx, command)
24 if err != nil {
24 if err != nil {