summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/llm/tools/shell/shell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/tools/shell/shell.go b/internal/llm/tools/shell/shell.go
index 08d8a986b..10fa3779f 100644
--- a/internal/llm/tools/shell/shell.go
+++ b/internal/llm/tools/shell/shell.go
@@ -48,7 +48,7 @@ func GetPersistentShell(workingDir string) *PersistentShell {
})
if shellInstance == nil || !shellInstance.isAlive {
- shellInstance = newPersistentShell(shellInstance.cwd)
+ shellInstance = newPersistentShell(workingDir)
}
return shellInstance