From 0095832be3b6c9ae9c45dfed70ecd22302e08dc9 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Fri, 2 May 2025 14:58:09 -0500 Subject: chore: cleanup and logging --- internal/llm/tools/shell/shell.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal') 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) -- cgit v1.2.3