[PR #7522] fix: report config errors instead of silent termination #12428

Closed
opened 2026-02-16 18:17:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7522

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7522 **State:** closed **Merged:** Yes --- 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.
yindo added the pull-request label 2026-02-16 18:17:20 -05:00
yindo closed this issue 2026-02-16 18:17:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12428