Feature hasn't been suggested before.
Describe the enhancement you want to request
I am the author of Issue #10799. After posting that issue, I looked into the relevant documentation and believe that Bun still has some compatibility issues regarding specific details.
Although Bun performs well in terms of performance, its stability in complex environments (especially during low-level shell interactions, memory-intensive operations, and edge cases on non-POSIX platforms) is not yet as mature as Node.js. Currently, the single-file packaging model forces a dependency on the Bun runtime, preventing users from avoiding such low-level crashes. From a deeper perspective, I personally believe that decoupling the OpenCode application itself from a specific runtime could be more beneficial for OpenCode.
I suggest introducing a "Native Node.js Runtime" mode for OpenCode as a complement or alternative to the existing Bun mode.
If this mode is already supported, I recommend clearly documenting the setup guide in the official documentation or README to facilitate developer usage. If it is not yet supported, I suggest adding it to the development roadmap to adapt to the Node.js environment, providing users with a more mature and controllable runtime option.
Feature hasn't been suggested before.
Describe the enhancement you want to request
I am the author of Issue #10799. After posting that issue, I looked into the relevant documentation and believe that Bun still has some compatibility issues regarding specific details.
Although Bun performs well in terms of performance, its stability in complex environments (especially during low-level shell interactions, memory-intensive operations, and edge cases on non-POSIX platforms) is not yet as mature as Node.js. Currently, the single-file packaging model forces a dependency on the Bun runtime, preventing users from avoiding such low-level crashes. From a deeper perspective, I personally believe that decoupling the OpenCode application itself from a specific runtime could be more beneficial for OpenCode.
I suggest introducing a "Native Node.js Runtime" mode for OpenCode as a complement or alternative to the existing Bun mode.
If this mode is already supported, I recommend clearly documenting the setup guide in the official documentation or README to facilitate developer usage. If it is not yet supported, I suggest adding it to the development roadmap to adapt to the Node.js environment, providing users with a more mature and controllable runtime option.