chore: cleanup and logging

This commit is contained in:
adamdottv
2025-05-02 14:58:09 -05:00
committed by Adam
parent 406ccf9b87
commit 0095832be3
3 changed files with 3 additions and 11 deletions

View File

@@ -11,6 +11,8 @@ import (
"sync"
"syscall"
"time"
"github.com/opencode-ai/opencode/internal/logging"
)
type PersistentShell struct {
@@ -99,7 +101,7 @@ func newPersistentShell(cwd string) *PersistentShell {
go func() {
err := cmd.Wait()
if err != nil {
// Log the error if needed
logging.ErrorPersist(fmt.Sprintf("Shell process exited with error: %v", err))
}
shell.isAlive = false
close(shell.commandQueue)