Skip to content

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

@ariane-emory

Description

@ariane-emory

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions