Description
When the configuration file is bad - for example, if it contains unknown keys, or unknown key commands in its keybindings - opencode, when run using bun dev, simply fails to start with no error other than error: script "dev" exited with code 1 instead of reporting a specific error as it used to. This error was introduced yesterday in commit adae0d185.
Sample bad opencode.json file:
{
"$schema": "https://opencode.ai/config.json",
"bad_setting": "i am a bad configuration file",
}
Plugins
None
OpenCode version
1.1.8
Steps to reproduce
- Use the configuration file above.
- Try to start opencode using
bun dev.
- Observe that open code silently fails to start.
Screenshot and/or share link
No response
Operating System
MacOS Sequoia latest
Terminal
iTerm2
Description
When the configuration file is bad - for example, if it contains unknown keys, or unknown key commands in its keybindings - opencode, when run using
bun dev, simply fails to start with no error other thanerror: script "dev" exited with code 1instead of reporting a specific error as it used to. This error was introduced yesterday in commitadae0d185.Sample bad
opencode.jsonfile:{ "$schema": "https://opencode.ai/config.json", "bad_setting": "i am a bad configuration file", }Plugins
None
OpenCode version
1.1.8
Steps to reproduce
bun dev.Screenshot and/or share link
No response
Operating System
MacOS Sequoia latest
Terminal
iTerm2