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

Closed
opened 2026-02-16 17:42:52 -05:00 by yindo · 2 comments
Owner

Originally created by @anthonymq on GitHub (Jan 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @anthonymq on GitHub (Jan 4, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 17:42:52 -05:00
yindo closed this issue 2026-02-16 17:42:52 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jan 4, 2026):

what if u try w/ out plugin?

@rekram1-node commented on GitHub (Jan 4, 2026): what if u try w/ out plugin?
Author
Owner

@anthonymq commented on GitHub (Jan 5, 2026):

worked without the plugin !

@anthonymq commented on GitHub (Jan 5, 2026): worked without the plugin !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4170