Adding a trailing comma to agents markdown freezes startup #4666

Closed
opened 2026-02-16 17:44:57 -05:00 by yindo · 2 comments
Owner

Originally created by @iloveicedgreentea on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I created an agent and accidentally added a trailing comma to the yaml at the top like so

model: openai/gpt-5.2-codex
reasoningEffort: "xhigh",

This causes opencode to freeze on launch. Removing the comma makes it work again.

Plugins

No response

OpenCode version

1.1.12

Steps to reproduce

  1. create new agent markdown file
  2. add trailing comma to a field in yaml section
  3. launch opencode

Screenshot and/or share link

No response

Operating System

mac tahoe

Terminal

vscode, ghostty

Originally created by @iloveicedgreentea on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I created an agent and accidentally added a trailing comma to the yaml at the top like so ``` model: openai/gpt-5.2-codex reasoningEffort: "xhigh", ``` This causes `opencode` to freeze on launch. Removing the comma makes it work again. ### Plugins _No response_ ### OpenCode version 1.1.12 ### Steps to reproduce 1. create new agent markdown file 2. add trailing comma to a field in yaml section 3. launch opencode ### Screenshot and/or share link _No response_ ### Operating System mac tahoe ### Terminal vscode, ghostty
yindo added the bug label 2026-02-16 17:44:57 -05:00
yindo closed this issue 2026-02-16 17:44:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #3537: Custom slash commands can crash opencode on startup (also caused by invalid YAML syntax in markdown files)

Both issues involve YAML parsing errors in markdown files causing startup failures. Feel free to ignore if your specific case differs.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #3537: Custom slash commands can crash opencode on startup (also caused by invalid YAML syntax in markdown files) Both issues involve YAML parsing errors in markdown files causing startup failures. Feel free to ignore if your specific case differs.
Author
Owner

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

seems like its been fixed in the current version @iloveicedgreentea

@OpeOginni commented on GitHub (Jan 12, 2026): seems like its been fixed in the current version @iloveicedgreentea
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4666