Description
Description
Running opencode run with an invalid model and a prompt/message argument produces a ProviderModelNotFoundError, but the process exits with status code 0.
This only appears to happen when a prompt/message is provided.
Command
opencode run -m invalid-model "some message"
echo $?
Plugins
No response
OpenCode version
1.14.41
Steps to reproduce
- Run:
opencode run -m invalid-model "build"
- Notice it prints
ProviderModelNotFoundError / Model not found
- Run:
echo $?
- Notice the exit code is
0
- [Optionally] Compare with:
opencode run -m invalid-model without a prompt/message
Screenshot and/or share link
No response
Operating System
macOS 26.4
Terminal
Mac Terminal
Description
Description
Running
opencode runwith an invalid model and a prompt/message argument produces aProviderModelNotFoundError, but the process exits with status code0.This only appears to happen when a prompt/message is provided.
Command
Plugins
No response
OpenCode version
1.14.41
Steps to reproduce
opencode run -m invalid-model "build"ProviderModelNotFoundError/Model not foundecho $?0opencode run -m invalid-modelwithout a prompt/messageScreenshot and/or share link
No response
Operating System
macOS 26.4
Terminal
Mac Terminal