Skip to content

fix: report config errors instead of silent termination#7522

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
ariane-emory:fix/silent-failure-on-bad-config
Jan 9, 2026
Merged

fix: report config errors instead of silent termination#7522
rekram1-node merged 1 commit into
anomalyco:devfrom
ariane-emory:fix/silent-failure-on-bad-config

Conversation

@ariane-emory

Copy link
Copy Markdown
Contributor

The args .fail() handler was only checking for specific argument errors and silently exiting for all other errors, including invalid config keys. This change re-throws errors so they're caught by the outer error handling logic that properly formats and displays them to users.

What does this PR do?

Instead of silently terminating when run using bun dev, OpenCode will report errors in the configuration file.

How did you verify your code works?

A/B testing.

The yargs .fail() handler was only checking for specific argument errors and
silently exiting for all other errors, including invalid config keys.
This change re-throws errors so they're caught by the outer error handling
logic that properly formats and displays them to users.
@ariane-emory ariane-emory marked this pull request as ready for review January 9, 2026 20:11
@github-actions

github-actions Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit 75df504 into anomalyco:dev Jan 9, 2026
4 checks passed
liorshk pushed a commit to liorshk/opencode that referenced this pull request Jan 17, 2026
triklozoid pushed a commit to triklozoid/opencode that referenced this pull request Feb 2, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants