mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
chore: cleanup and logging
This commit is contained in:
parent
406ccf9b87
commit
0095832be3
3 changed files with 3 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue