OpenCode crashes with Bun cleanNode abort when connecting to z.ai coding plan
Description
OpenCode crashes immediately when attempting to connect to the z.ai coding plan integration. The crash occurs during the connection process and results in an abort triggered by recursive cleanNode calls in the Bun runtime.
Error Stack Trace: abort@[native code] @/$bunfs/root/src/index.js:215446:19 cleanNode@/$bunfs/root/src/index.js:211019:24 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16 cleanNode@/$bunfs/root/src/index.js:211014:16
Analysis:
- The error originates from Bun's JavaScript runtime (@/$bunfs/root/src/index.js)
- Recursive cleanNode calls (8+ iterations) suggest a memory management/cleanup issue
- The trigger occurs specifically during z.ai integration connection
- This appears to be a cleanup process failure rather than user code error Additional Context:
- No user code modifications were in progress when the crash occurred
- The crash is reproducible on each attempt to connect to z.ai Priority: High - Makes z.ai integration unusable
Plugins
oh my opencode
OpenCode version
1.1.1
Steps to reproduce
Steps to Reproduce:
- Open OpenCode IDE
- Navigate to z.ai integration
- Click "Connect to z.ai coding plan" (or equivalent option)
- Observe crash
Screenshot and/or share link
No response
Operating System
macOS (darwin) 15.7.2
Terminal
ghostty