You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the skill tool for a skill that isn't in the session's discovered skills list, the error message shows [object Promise] instead of the actual available skills list.
Error: Skill "session-retrospective" not found. Available skills: [object Promise]
This appears to be an async/await issue where the Promise isn't being resolved before being interpolated into the error string.
Additional context
Skills created before session start work correctly
All skill files pass frontmatter validation (name, description present; name matches directory; regex pattern valid)
Separately, skills created mid-session aren't discoverable until a new session (which may be expected behavior), but the error message bug makes debugging confusing
Plugins
No response
OpenCode version
1.1.3
Steps to reproduce
Start an OpenCode session
Create a new skill mid-session:
mkdir -p ~/.config/opencode/skill/test-skill
cat >~/.config/opencode/skill/test-skill/SKILL.md << 'EOF'---name: test-skilldescription: A test skill created mid-session---## Test contentEOF
Try to load the skill: skill({ name: "test-skill" })
Observe error: Error: Skill "test-skill" not found. Available skills: [object Promise]
Expected behavior
Error message should show the actual list of available skills:
Error: Skill "test-skill" not found. Available skills: github-cli, github-pr-review, senior-pr-review
Description
When calling the
skilltool for a skill that isn't in the session's discovered skills list, the error message shows[object Promise]instead of the actual available skills list.This appears to be an async/await issue where the Promise isn't being resolved before being interpolated into the error string.
Additional context
[object Promise]error and was closed on Dec 23, 2025 - this may be a regression or incomplete fixPlugins
No response
OpenCode version
1.1.3
Steps to reproduce
skill({ name: "test-skill" })Error: Skill "test-skill" not found. Available skills: [object Promise]Expected behavior
Error message should show the actual list of available skills:
Screenshot and/or share link
No response
Operating System
macOS (darwin)
Terminal
macOS Terminal