Skip to content

Bun crash in the middle of a response #5901

Closed

Description

@lotrez

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

Activity

  1. github-actions commented on Dec 21, 2025

    @github-actions
    Contributor

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

    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.

  2. rekram1-node commented on Dec 21, 2025

    @rekram1-node
    Contributor

    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?

  3. lotrez commented on Dec 21, 2025

    @lotrez
    Author

    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

  4. bensheed commented on Feb 2, 2026

    @bensheed

    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.

  5. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions