summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-02 14:58:09 -0500
committerAdam <[email protected]>2025-05-02 15:24:47 -0500
commit0095832be3b6c9ae9c45dfed70ecd22302e08dc9 (patch)
tree696a3bd87f9081599f2cbc49a663b0b3b9d943ab /internal
parent406ccf9b878d1d9bd0c9bf8ed3432fe6f156fee3 (diff)
downloadopencode-0095832be3b6c9ae9c45dfed70ecd22302e08dc9.tar.gz
opencode-0095832be3b6c9ae9c45dfed70ecd22302e08dc9.zip
chore: cleanup and logging
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)