summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/llm/tools/shell/shell.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/llm/tools/shell/shell.go b/internal/llm/tools/shell/shell.go
index 5731faec3..668a69fa1 100644
--- a/internal/llm/tools/shell/shell.go
+++ b/internal/llm/tools/shell/shell.go
@@ -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)