Sfoglia il codice sorgente

use provided workingg dir

Fuad 10 mesi fa
parent
commit
f12386e558
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      internal/llm/tools/shell/shell.go

+ 1 - 1
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