opencode icon indicating copy to clipboard operation
opencode copied to clipboard

OpenCode crashes with Bun cleanNode abort when connecting to z.ai coding plan

Open anthonymq opened this issue 1 week ago • 1 comments

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:

  1. Open OpenCode IDE
  2. Navigate to z.ai integration
  3. Click "Connect to z.ai coding plan" (or equivalent option)
  4. Observe crash

Screenshot and/or share link

No response

Operating System

macOS (darwin) 15.7.2

Terminal

ghostty

anthonymq avatar Jan 04 '26 17:01 anthonymq