Conversation
…20623 - Create OPENCODE_COMPATIBILITY.md with detailed diagnosis and solutions - Document Issue #20623: OpenCode plugin loader breaks native NAPI addons in v1.3.8+ - Add troubleshooting checklist and decision tree - Update README with compatibility badge and new issues section - Update QUICK_START with version note and error reference - Update docs/README with new compatibility document NAPI Issue Details: - Affected: OpenCode v1.3.8 - v1.3.13 - Root cause: PR #20112 plugin loader refactor - Workaround: Downgrade to v1.3.7 - Status: Issue #20623 open, no ETA for fix Solutions provided: 1. Downgrade to v1.3.7 (immediate) 2. Improve error messaging (interim) 3. Migrate to pure JS backend (long-term)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive documentation for OpenCode v1.3.8+ NAPI addon loading issue (Issue #20623), providing diagnosis and three practical solutions for users.
Problem
OpenCode v1.3.8 introduced a plugin loader refactor (PR #20112) that breaks native NAPI addon loading.
Symptoms:
Root Cause: Plugin loader's
resolvePackagePath() + pathToFileURL()breaks external NAPI addon resolutionAffected: OpenCode v1.3.8 - v1.3.13
Status: Issue #20623 (Open, no ETA for OpenCode fix)
Solutions Provided
Downgrade to v1.3.7 ✅ (Recommended)
Improve Error Messaging 🔄 (Interim)
Migrate to Pure JS 🔄 (Long-term)
Changes
New Document
docs/OPENCODE_COMPATIBILITY.md(298 lines)Updated Documents
Files Changed
User Impact
✅ Positive:
✅ No Breaking Changes:
Testing
✅ Documentation completeness reviewed
✅ All internal links validated
✅ Version matrix verified
✅ Diagnosis steps tested
✅ Commit structure verified
Related Issues: #20623 (main), #20112 (root cause), #20139, #20149, #20153 (related)
Type: Documentation | Breaking: No | Impact: Positive