Skip to content

skills: built-in skill preview fails with 'Location not found: /builtin' on Windows #60517

Closed as duplicate

Description

@caowenlong3011-lab

Summary

In the desktop app on Windows, opening any built-in skill from Settings → Extensions → Skills fails with a toast 加载文件失败 / Location not found: /builtin. Built-in skills report a virtual path (/builtin/<id>.md) that has no filesystem root on Windows, so the file/location loader cannot resolve it. The skills themselves still work (the agent can load them), only in-app viewing is broken.

Environment

  • opencode version: 2.2.2 (opencode-cli --version, channel latest)
  • OS: Windows 11 (10.0.26300, win32 x64)
  • Terminal: Unavailable — desktop app GUI, no terminal env vars set
  • Shell: C:\Windows\system32\cmd.exe
  • Install/channel: release, desktop installer (%LOCALAPPDATA%\Programs\ai.opencode.desktop)
  • Active plugins: none (no opencode.json in ~/.config/opencode)

Reproduction

  1. Open the OpenCode desktop app on Windows.
  2. Go to Settings → Extensions → Skills. The panel shows 3 built-in skills (opencode, report, browser).
  3. Click any of them to open/preview it.

Expected Behavior

The skill content is shown (or the file opens in the editor). /api/skill already returns the full body for each skill:

{
  "id": "opencode",
  "name": "OpenCode",
  "path": "/builtin/opencode.md",
  "content": "# OpenCode\n\nUse this guide ..."
}

Actual Behavior

A toast appears:

加载文件失败
Location not found: /builtin

Nothing is displayed. Reproducible every time, for all three built-in skills.

Additional Context

  • opencode api get /api/skill returns paths /builtin/opencode.md, /builtin/report.md, /builtin/browser.md. None of these exist on disk — built-in skills are embedded in opencode-cli.exe.
  • The UI appears to route the skill through the location/file provider, which tries to resolve /builtin as a directory root. On POSIX /builtin is at least a syntactically valid absolute path; on Windows there is no such root, so resolution fails early with Location not found.
  • Workaround: read the body from /api/skill (or tools.opencode.models-style introspection) and save it as a normal .md file.
  • Possible fix: serve built-in skill content directly from the skill registry for previews, or register /builtin as a virtual location in the location provider so Location not found does not apply.
  • Agent-side loading via the skill tool is unaffected; the bug is limited to the GUI preview path.

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the detailed report! I think this is a duplicate of #60439, which reports the same Location not found: /builtin toast when opening the built-in skills (opencode, report, browser) on Windows and has the same cause.

    Possible duplicates and related items, most likely first:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    Closing this as a duplicate of #60439. There was no reply saying how this problem is different. #60439 was the same Location not found: /builtin error when opening the built-in skills (opencode, report, browser) on Windows, and #60464 fixed it after 2.2.2. Once a release after 2.2.2 is out, please update the desktop app. If built-in skills still won't open after that, comment here or open a new issue with your version and we'll take another look. Thanks again for the detailed report!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions