Syntax error in opencode.json will cause opencode startup to hang indefinitely #4730

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

Originally created by @AndyRightNow on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

A syntax error, say, a missing comma, will hang the opencode cli command indefinitely instead of throwing an error.

Plugins

No response

OpenCode version

1.1.13

Steps to reproduce

  1. Remove a comma from opencode.json to make it invalid
  2. Run opencode in the cli

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Originally created by @AndyRightNow on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description A syntax error, say, a missing comma, will hang the `opencode` cli command indefinitely instead of throwing an error. ### Plugins _No response_ ### OpenCode version 1.1.13 ### Steps to reproduce 1. Remove a comma from `opencode.json` to make it invalid 2. Run `opencode` in the cli ### Screenshot and/or share link _No response_ ### Operating System macOS 26.2 ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:45:11 -05:00
yindo closed this issue 2026-02-16 17:45:11 -05:00
Author
Owner

@shetty4l commented on GitHub (Jan 11, 2026):

https://github.com/user-attachments/assets/d74fd34a-acc2-4358-98fe-d777f872e6cb

Small demo of the fix. Happy to address feedback if there's any!

@shetty4l commented on GitHub (Jan 11, 2026): https://github.com/user-attachments/assets/d74fd34a-acc2-4358-98fe-d777f872e6cb Small demo of the fix. Happy to address feedback if there's any!
Author
Owner

@goniz commented on GitHub (Jan 12, 2026):

@rekram1-node I think this issue can be closed according to your comment

https://github.com/anomalyco/opencode/pull/7828#issuecomment-3739810250

@goniz commented on GitHub (Jan 12, 2026): @rekram1-node I think this issue can be closed according to your comment https://github.com/anomalyco/opencode/pull/7828#issuecomment-3739810250
Author
Owner

@rekram1-node commented on GitHub (Jan 12, 2026):

This is fixed on 1.1.14

@rekram1-node commented on GitHub (Jan 12, 2026): This is fixed on 1.1.14
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4730