Bun crash in the middle of a response #3729

Open
opened 2026-02-16 17:41:15 -05:00 by yindo · 4 comments
Owner

Originally created by @lotrez on GitHub (Dec 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Opencode crashes on some prompts.

The logs in debug level stop at "INFO 2025-12-21T14:07:23 +0ms service=bus type=session.diff publishing"

Messages before:

INFO 2025-12-21T14:07:23 +6ms service=session.prompt status=completed duration=7 resolveTools
INFO 2025-12-21T14:07:23 +1ms service=ripgrep cwd=C:\Users\Lucien\Documents\coding\lien limit=200 tree
INFO 2025-12-21T14:07:23 +20ms service=session.processor process
INFO 2025-12-21T14:07:23 +0ms service=llm providerID=opencode modelID=kimi-k2 sessionID=ses_4bec3971fffeTM0lutfIYE4eM1 small=false agent=build stream
INFO 2025-12-21T14:07:23 +0ms service=llm providerID=opencode modelID=kimi-k2 sessionID=ses_4bec3971fffeTM0lutfIYE4eM1 small=false agent=build params={"options":{}} params
INFO 2025-12-21T14:07:23 +2ms service=bus type=session.status publishing
INFO 2025-12-21T14:07:23 +2ms service=bus type=message.updated publishing
INFO 2025-12-21T14:07:23 +1ms service=bus type=session.updated publishing
INFO 2025-12-21T14:07:23 +0ms service=bus type=session.diff publishing

OpenCode version

1.0.184

Steps to reproduce

Start opencode
Write a prompt
Crash

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @lotrez on GitHub (Dec 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Opencode crashes on some prompts. The logs in debug level stop at "INFO 2025-12-21T14:07:23 +0ms service=bus type=session.diff publishing" Messages before: INFO 2025-12-21T14:07:23 +6ms service=session.prompt status=completed duration=7 resolveTools INFO 2025-12-21T14:07:23 +1ms service=ripgrep cwd=C:\Users\Lucien\Documents\coding\lien limit=200 tree INFO 2025-12-21T14:07:23 +20ms service=session.processor process INFO 2025-12-21T14:07:23 +0ms service=llm providerID=opencode modelID=kimi-k2 sessionID=ses_4bec3971fffeTM0lutfIYE4eM1 small=false agent=build stream INFO 2025-12-21T14:07:23 +0ms service=llm providerID=opencode modelID=kimi-k2 sessionID=ses_4bec3971fffeTM0lutfIYE4eM1 small=false agent=build params={"options":{}} params INFO 2025-12-21T14:07:23 +2ms service=bus type=session.status publishing INFO 2025-12-21T14:07:23 +2ms service=bus type=message.updated publishing INFO 2025-12-21T14:07:23 +1ms service=bus type=session.updated publishing INFO 2025-12-21T14:07:23 +0ms service=bus type=session.diff publishing ### OpenCode version 1.0.184 ### Steps to reproduce Start opencode Write a prompt Crash ### Screenshot and/or share link <img width="1920" height="1032" alt="Image" src="https://github.com/user-attachments/assets/7ef6f2fc-94a1-4ac8-aaac-380720a2b578" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 17:41:15 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 21, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5896: Bun crash when /exiting
  • #4834: Crash After Exiting Editor
  • #5338: Opencode becomes stuck on start if internet connection is not stable

All of these involve Bun crashes during execution or at startup. Your issue specifically mentions the logs stopping at "session.diff publishing" and crashes using the kimi-k2 model, which might be a provider-specific issue or a session processing crash.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 21, 2025): This issue might be a duplicate of existing issues. Please check: - #5896: Bun crash when `/exit`ing - #4834: Crash After Exiting Editor - #5338: Opencode becomes stuck on start if internet connection is not stable All of these involve Bun crashes during execution or at startup. Your issue specifically mentions the logs stopping at "session.diff publishing" and crashes using the kimi-k2 model, which might be a provider-specific issue or a session processing crash. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 21, 2025):

Ah yeah that’s a bun bug, if you dont mind can you open an issue on their repo? perhaps steps to reproduce for them too?

@rekram1-node commented on GitHub (Dec 21, 2025): Ah yeah that’s a bun bug, if you dont mind can you open an issue on their repo? perhaps steps to reproduce for them too?
Author
Owner

@lotrez commented on GitHub (Dec 21, 2025):

I used their report link but I haven't been able to reproduce it since I posted this issue :(, it was near 100% before too

@lotrez commented on GitHub (Dec 21, 2025): I used their report link but I haven't been able to reproduce it since I posted this issue :(, it was near 100% before too
Author
Owner

@bensheed commented on GitHub (Feb 2, 2026):

I am having this issue with Sonnet when using the Desktop app/server running on another machine.

the last message in every log related to a crash contains "service=bus type=session.status publishing"

Let me know if any other information is need.

@bensheed commented on GitHub (Feb 2, 2026): I am having this issue with Sonnet when using the Desktop app/server running on another machine. the last message in every log related to a crash contains "service=bus type=session.status publishing" Let me know if any other information is need.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3729