Skip to content

fix(omo-opencode): use named export for OpenCode 1.17.8+ compatibility#5470

Open
Colinchiu007 wants to merge 2 commits into
code-yeongyu:devfrom
Colinchiu007:dev
Open

fix(omo-opencode): use named export for OpenCode 1.17.8+ compatibility#5470
Colinchiu007 wants to merge 2 commits into
code-yeongyu:devfrom
Colinchiu007:dev

Conversation

@Colinchiu007

@Colinchiu007 Colinchiu007 commented Jun 21, 2026

Copy link
Copy Markdown

OpenCode 1.17.8+ plugin loader scans named exports only — 'default' is ignored. Renamed from 'export default pluginModule' to 'export const omoPlugin = pluginModule.server' so the plugin registers all hooks properly (including keyword-detector).

Summary

Changes

Screenshots

Before After

Testing

bun run typecheck
bun test

Related Issues


Summary by cubic

Switches the omo-opencode plugin to a named export omoPlugin = pluginModule.server for OpenCode 1.17.8+ so all hooks load (including keyword-detector). Adds detailed skill-loader error/scan logs and downstream test scripts to diagnose loading issues.

Written for commit b554fc5. Summary will update on new commits.

Review in cubic

OpenCode 1.17.8+ plugin loader scans named exports only — 'default' is
ignored. Renamed from 'export default pluginModule' to 'export const
omoPlugin = pluginModule.server' so the plugin registers all hooks
properly (including keyword-detector).
@github-actions

github-actions Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

@github-actions github-actions Bot added the opencode OpenCode edition: packages/omo-opencode label Jun 21, 2026
@Colinchiu007

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

- Add error logging in loadSkillFromPath
- Add directory scanning logs in loadSkillsFromDir
- Add test files for downstream validation
@github-actions github-actions Bot added the skills-loader-core Changes under packages/skills-loader-core label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

opencode OpenCode edition: packages/omo-opencode skills-loader-core Changes under packages/skills-loader-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant