Description
Every bash tool call fails with the following error returned to the LLM:
(result.stdout ?? "").split is not a function. (In '(result.stdout ?? "").split(\n)', '(result.stdout ?? "").split' is undefined)
The tool appears to complete instantly (duration=0ms in logs) without actually spawning a shell process. The error suggests the tool result handler is receiving a non-string value for stdout (likely null or an abort object) and failing to parse it.
The error is consistent across all commands, including trivial ones like echo "hello".
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
- Start OpenCode (TUI or any mode)
- Ask the LLM to run any bash command (e.g.
echo "hello" or git status)
- Observe the error: "(result.stdout ?? "").split is not a function"
- Check logs at ~/.local/share/opencode/log/ — bash tool shows status=completed duration=0, confirming the subprocess never ran
Screenshot and/or share link
Operating System
No response
Terminal
No response
Description
Every bash tool call fails with the following error returned to the LLM:
(result.stdout ?? "").split is not a function. (In '(result.stdout ?? "").split(
\n)', '(result.stdout ?? "").split' is undefined)The tool appears to complete instantly (duration=0ms in logs) without actually spawning a shell process. The error suggests the tool result handler is receiving a non-string value for stdout (likely null or an abort object) and failing to parse it.
The error is consistent across all commands, including trivial ones like
echo "hello".Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
echo "hello"orgit status)Screenshot and/or share link
Operating System
No response
Terminal
No response