opencode stuck to run #5630

Open
opened 2026-02-16 17:54:56 -05:00 by yindo · 0 comments
Owner

Originally created by @PhantomYdn on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Today I have implemented custom command. And after that opencode stopped to run. When run like this opencode --print-logs --log-level DEBUG it shows only this:

INFO  2026-01-14T06:38:18 +378ms service=default version=1.1.10 args=["--print-logs","--log-level","DEBUG","-c"] opencode
INFO  2026-01-14T06:38:18 +1ms service=config path=/Users/phantom/.config/opencode/config.json loading
INFO  2026-01-14T06:38:18 +0ms service=config path=/Users/phantom/.config/opencode/opencode.json loading
INFO  2026-01-14T06:38:18 +6ms service=config path=/Users/phantom/.config/opencode/opencode.jsonc loading

Only running opencode web helped to clarify the situation. In a browser I found the following:

{"name":"ConfigFrontmatterError","data":{"path":"/Users/phantom/.config/opencode/command/reflect.md","message":"Failed to parse YAML frontmatter: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 2, column 39:\n     ... ption: End-of-session reflection: checklist items and documentat ... \n                                         ^"}}

Apprarantly problem was a character ":" at a command description. Seems that there are multiple things which worst to address:

  • Proper handling of wrong YAML
  • Proper logging such cases
  • Potential repeating the case for other entities like agents and skills

Plugins

No response

OpenCode version

1.1.10

Steps to reproduce

  1. Create a global command with using extra ":" at command description
  2. Try to restart opencode
  3. It just stuck without any messages
  4. Enabling logging is not helping much

Screenshot and/or share link

No response

Operating System

MacOs 26

Terminal

Kitty + tmux

Originally created by @PhantomYdn on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Today I have implemented custom command. And after that opencode stopped to run. When run like this `opencode --print-logs --log-level DEBUG ` it shows only this: ``` INFO 2026-01-14T06:38:18 +378ms service=default version=1.1.10 args=["--print-logs","--log-level","DEBUG","-c"] opencode INFO 2026-01-14T06:38:18 +1ms service=config path=/Users/phantom/.config/opencode/config.json loading INFO 2026-01-14T06:38:18 +0ms service=config path=/Users/phantom/.config/opencode/opencode.json loading INFO 2026-01-14T06:38:18 +6ms service=config path=/Users/phantom/.config/opencode/opencode.jsonc loading ``` Only running `opencode web` helped to clarify the situation. In a browser I found the following: ``` {"name":"ConfigFrontmatterError","data":{"path":"/Users/phantom/.config/opencode/command/reflect.md","message":"Failed to parse YAML frontmatter: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 2, column 39:\n ... ption: End-of-session reflection: checklist items and documentat ... \n ^"}} ``` Apprarantly problem was a character ":" at a command description. Seems that there are multiple things which worst to address: * Proper handling of wrong YAML * Proper logging such cases * Potential repeating the case for other entities like agents and skills ### Plugins _No response_ ### OpenCode version 1.1.10 ### Steps to reproduce 1. Create a global command with using extra ":" at command description 2. Try to restart opencode 3. It just stuck without any messages 4. Enabling logging is not helping much ### Screenshot and/or share link _No response_ ### Operating System MacOs 26 ### Terminal Kitty + tmux
yindo added the bug label 2026-02-16 17:54:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5630