Skip to content

YAML parsing errors in skills/agents cause TUI crashes #8047

Description

@vvarp

Description

When a SKILL.md, command, or agent file contains error in frontmatter YAML portion of markdown file, the TUI crashes with a fullscreen ConfigFrontmatterError that covers the entire interface. In the desktop/web version no error message is being shown.

Example of problematic frontmatter (unquoted : in the description field):

---
name: test-skill
description: Use this skill for testing stuff. Reference: https://example.com
---

Plugins

No response

OpenCode version

latest dev branch

Steps to reproduce

  1. Create a skill file at .opencode/skill/test/SKILL.md:
---
name: test-skill
description: Use this skill for testing stuff. Reference: https://example.com
---
  1. Run opencode
  2. Send any message to see TUI crash with fullscreen ConfigFrontmatterError

Screenshot and/or share link

Notice the error message covering bottom part of TUI:

Image

Operating System

macOS Tahoe

Terminal

Any

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions