Skip to content

fix(embedding): prevent Intel macOS shutdown crash - #227

Merged
EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/225-intel-onnx-shutdown
Aug 2, 2026
Merged

fix(embedding): prevent Intel macOS shutdown crash#227
EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/225-intel-onnx-shutdown

Conversation

@EyJunge1

@EyJunge1 EyJunge1 commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pin onnxruntime-node to 1.20.1, the last release that includes macOS Intel binaries without the shutdown teardown regression
  • discover the pinned package's N-API layout instead of hardcoding it
  • extend the compiled-host regression fixture to run real inference and verify natural process shutdown
  • document the upstream binary and teardown constraints for Intel macOS

Verification

  • bun run typecheck
  • bun test
  • bun run build
  • embedding backend smoke test
  • nested compiled-host fixture with real inference and natural exit

Closes #225

Made with Cursor

Pin the last Intel-compatible ONNX Runtime version before the teardown regression and exercise natural process shutdown after real inference.

Co-authored-by: Cursor <cursoragent@cursor.com>
@EyJunge1
EyJunge1 merged commit e4c2c7e into tickernelz:main Aug 2, 2026
14 checks passed
@EyJunge1 EyJunge1 mentioned this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] macOS Intel: OpenCode exits with SIGILL in onnxruntime::Environment destructor after local embedding

1 participant