regression: Near-silent failure to start when convict file is bad #4551

Closed
opened 2026-02-16 17:44:33 -05:00 by yindo · 3 comments
Owner

Originally created by @ariane-emory on GitHub (Jan 9, 2026).

Originally assigned to: @thdxr on GitHub.

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

  1. Use the configuration file above.
  2. Try to start opencode using bun dev.
  3. Observe that open code silently fails to start.

Screenshot and/or share link

No response

Operating System

MacOS Sequoia latest

Terminal

iTerm2

Originally created by @ariane-emory on GitHub (Jan 9, 2026). Originally assigned to: @thdxr on GitHub. ### 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: ```json { "$schema": "https://opencode.ai/config.json", "bad_setting": "i am a bad configuration file", } ``` ### Plugins None ### OpenCode version 1.1.8 ### Steps to reproduce 1. Use the configuration file above. 2. Try to start opencode using `bun dev`. 3. Observe that open code silently fails to start. ### Screenshot and/or share link _No response_ ### Operating System MacOS Sequoia latest ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:44:33 -05:00
yindo closed this issue 2026-02-16 17:44:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7483: ConfigInvalidError on Windows due to unrecognized keys in opencode.json - similar issue with bad configuration not being properly reported
  • #6397: [FEATURE]: Missing key commands ought not be fatal errors - directly addresses the keybinding validation problem mentioned in this issue
  • #4850: Plugin syntax errors are handled poorly - related error handling and reporting improvements

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #7483: ConfigInvalidError on Windows due to unrecognized keys in opencode.json - similar issue with bad configuration not being properly reported - #6397: [FEATURE]: Missing key commands ought not be fatal errors - directly addresses the keybinding validation problem mentioned in this issue - #4850: Plugin syntax errors are handled poorly - related error handling and reporting improvements Feel free to ignore if none of these address your specific case.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 9, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@ariane-emory commented on GitHub (Jan 9, 2026):

Resolved via #7522.

@ariane-emory commented on GitHub (Jan 9, 2026): Resolved via #7522.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4551