fix(embedding): pin onnxruntime-node for Intel Mac nested installs - #198
Merged
tickernelz merged 3 commits intoJul 30, 2026
Merged
Conversation
…ickernelz#184) Make onnxruntime-node@1.22.0 a direct dependency and resolve-shim it before loading transformers, so OpenCode's nested plugin install (which ignores package overrides) still gets a darwin/x64 binding. Fail fast with a clear remote-embedding hint instead of leaving memory stuck initializing. Co-authored-by: Cursor <cursoragent@cursor.com>
EyJunge1
force-pushed
the
fix/intel-mac-onnxruntime-direct-dep
branch
from
July 28, 2026 12:46
14dad72 to
258238c
Compare
Keep existing runtime mocks and compatible client implementations working while still surfacing native embedding initialization failures when supported. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the retired macOS 13 label so the Intel embedding verification can run instead of remaining queued indefinitely. Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
|
Merged into The combined four-PR tree was verified with:
The pushed |
Merged
Owner
|
Released in v2.22.0. The npm registry artifact was downloaded, checksum-verified, installed with lifecycle scripts disabled, and passed native dependency, libSQL vector, package entrypoint, and bundled web UI checks. |
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
onnxruntime-node@1.22.0a direct dependency so OpenCode nested plugin installs still get adarwin/x64binding.overridespin and documents the nested-install reason for the direct dependency.Test plan
bun test tests/onnxruntime-resolve.test.ts tests/package-dependencies.test.ts(7 pass)~/.cache/opencode/packages/opencode-mem@*and reinstall the plugin (needs realdarwin/x64hardware; not verified here)onnxruntime-node@1.22.0(needs realdarwin/x64hardware; not verified here)intel mac missing-binding message mentions remote embedding fallback+getEmbeddingInitError()path)