@@ -47,8 +47,10 @@ func GetPersistentShell(workingDir string) *PersistentShell {
47 shellInstance = newPersistentShell(workingDir)
47 shellInstance = newPersistentShell(workingDir)
50− if shellInstance == nil || !shellInstance.isAlive {
50+ if shellInstance == nil {
51 shellInstance = newPersistentShell(workingDir)
51 shellInstance = newPersistentShell(workingDir)
52+ } else if !shellInstance.isAlive {
53+ shellInstance = newPersistentShell(shellInstance.cwd)
54 return shellInstance
56 return shellInstance