Skip to content

Project .opencode/skills not discovered in TUI sessions (only in run/debug skill) #47209

Description

@ngoc-minh-do

Description

In interactive TUI sessions, project skills under .opencode/skills/<name>/SKILL.md are never discovered, so the model cannot load them. Headless commands on the same machine, repo, and directory see them fine. A freshly launched TUI process reproduces it, so it is not stale state. The config workaround "skills": { "paths": [".opencode/skills"] } is ignored by the TUI but honored headless.

Steps to reproduce

  1. git init demo && cd demo
  2. mkdir -p .opencode/skills/demo and add .opencode/skills/demo/SKILL.md with frontmatter name: demo + description: Demo skill.
  3. Ensure at least one external skill exists, e.g. ~/.agents/skills/context7-mcp/SKILL.md
  4. opencode debug skill lists demo; opencode run "hi" --print-logs 2>&1 | grep "init count" shows message=init count=3
  5. Launch opencode (TUI), invoke ->Skill "demo" -> Skill "demo" not found; the TUI process logs message=init count=2
  6. Restart the TUI fresh with "skills": { "paths": [".opencode/skills"] } in the project config -> still count=2

Plugins

@tarquinen/opencode-dcp@latest (only plugin; also tested without)

OpenCode version

1.18.27 (installer binary from https://github.com/anomalyco/opencode, dev)

Operating System

Debian GNU/Linux 13 (trixie)

Terminal

VS Code integrated terminal (xterm-256color)

Screenshot and/or share link

Not yet provided (can generate a /share link if needed)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions