mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
chore: refactoring status updates
This commit is contained in:
parent
e35ea2d448
commit
f41b7bbd0a
24 changed files with 367 additions and 265 deletions
|
|
@ -12,7 +12,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/opencode-ai/opencode/internal/logging"
|
||||
"github.com/opencode-ai/opencode/internal/status"
|
||||
)
|
||||
|
||||
type PersistentShell struct {
|
||||
|
|
@ -101,7 +101,7 @@ func newPersistentShell(cwd string) *PersistentShell {
|
|||
go func() {
|
||||
err := cmd.Wait()
|
||||
if err != nil {
|
||||
logging.ErrorPersist(fmt.Sprintf("Shell process exited with error: %v", err))
|
||||
status.Error(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