Skip to content

[BUG] Refusal response is hidden and conversation history disappears (OpenCode Go) #44958

Closed as not planned

Description

@bojackduy

Description

While using muse-spark-1.2-contributor through an OpenCode Go subscription, a run can finish without showing any response or error in the UI. In other occurrences, the run remains active indefinitely.

In the captured occurrence, the HTTP stream completed successfully and contained a refusal message:

event: response.completed
data: {"response":{"status":"completed","error":null,"output":[{"role":"assistant","content":[{"type":"refusal","refusal":"I'm sorry, but I can't help with that request."}]}]}}

OpenCode did not display that refusal or any error. The conversation view became empty, previous messages were no longer visible, and /revert could not recover them.

This report is about how OpenCode presents and preserves the session after this response. It does not assume why the model returned a refusal.

Steps to Reproduce

  1. Use muse-spark-1.2-contributor with an OpenCode Go subscription.
  2. Continue an existing conversation and send a prompt.
  3. Encounter a response containing a refusal content block.

Actual Behavior

  • The run may end with no visible response or error, or remain active indefinitely.
  • The refusal returned by the provider is not shown.
  • The conversation view becomes empty and previous messages disappear.
  • /revert cannot recover the missing conversation.

Expected Behavior

  • OpenCode shows the provider response or a visible error.
  • Existing conversation history remains available.
  • The session reaches a clear completed or failed state.

Environment

  • OpenCode: 1.18.22
  • Provider: OpenCode Go subscription
  • Model: muse-spark-1.2-contributor
  • OS: macOS

Screenshot

The conversation area is empty after the run, with no refusal or error shown:

OpenCode conversation view empty after a refusal response

Activity

  1. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

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

  2. rekram1-node commented on Aug 25, 2026

    @rekram1-node
    Collaborator

    OpenCode sends 753 tool definitions (486KB payload) including potentially dangerous tools:

    ?? lol no

  3. bojackduy commented on Aug 25, 2026

    @bojackduy
    Author

    Clarification on the bug report:
    Sorry for the confusion in my initial description.

    Let me clarify the actual issue:
    The root cause is NOT about which tools are being sent. The model may refuse for any reason - safety filter, content policy, model limitations, etc. Thats expected behavior from the model.

    The actual bugs are:

    1. OpenCode doesnt display the refusal message - The response clearly contains "content":[{"type":"refusal","refusal":"Im sorry, but I cant help with that request."}] but OpenCode shows nothing to the user. The conversation just empties silently.
    2. OpenCode wipes the conversation history - When a refusal occurs, all previous messages disappear and /revert cannot restore them.
    Image
  4. changed the title [-][BUG] muse-spark-1.2-contributor refuses 753-tool requests + OpenCode doesn't display refusal responses[/-] [+][BUG] Refusal response is hidden and conversation history disappears (OpenCode Go)[/+] on Aug 25, 2026
  5. khaclbit commented on Aug 27, 2026

    @khaclbit

    @rekram1-node got this same problem too, pls help

  6. khaclbit commented on Aug 27, 2026

    @khaclbit

    opencode/muse-spark-1.2-free works normally for me with the same prompt, tools, and session. However, opencode-go/muse-spark-1.2-contributor through the OpenCode GO subscription consistently hits this bug.

    Could someone help clarify what might be different between these two? Since this is a paid subscription, I’d really appreciate some guidance on how I can get this issue debugged or investigated. Thank you!

  7. khaclbit commented on Aug 28, 2026

    @khaclbit

    Looks like the Muse Spark model was updated, and I no longer get the refusal response. That said, the empty visibility issue probably still needs attention in case a refusal occurs again in the future.

  8. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions