Skip to content

[BUG] Console muse-spark-1.3-contributor-free: 400 'reasoning encrypted_content was not issued to this caller' (zen/v1/responses) #49116

Description

@Vargas876

Summary

OpenCode Desktop (Windows) with the free model muse-spark-1.3-contributor-free served by the Console provider (https://opencode.ai/zen/v1/responses, OpenAI Responses API) intermittently fails with HTTP 400: [invalid_request_error] reasoning \encrypted_content` was not issued to this caller`. The failure escalates over the life of a session and survives cleaning every reasoning blob from the message history, restarting the app, and upgrading the app (1.18.21 -> 1.18.31).

Steps to reproduce

  1. In OpenCode Desktop, start a session with model opencode/muse-spark-1.3-contributor-free (Console provider).
  2. Send a few messages (1 to several).
  3. A later request fails with the error above (isRetryable: false).

The exact error recorded in the app event store:

{
  "name": "APIError",
  "data": {
    "message": "Error from provider (Console): Upstream request failed: [invalid_request_error] reasoning `encrypted_content` was not issued to this caller",
    "statusCode": 400,
    "isRetryable": false,
    "responseHeaders": {
      "cf-placement": "remote-ORD",
      "cf-ray": "a3acf5b85a095c86-MIA",
      "date": "Mon, 14 Sep 2026 05:23:34 GMT",
      "server": "cloudflare"
    },
    "responseBody": "{\"model\":\"muse-spark-1.3-contributor-free\",\"error\":{\"param\":null,\"type\":\"invalid_request_error\",\"message\":\"Error from provider (Console): Upstream request failed: [invalid_request_error] reasoning `encrypted_content` was not issued to this caller\"}}",
    "metadata": { "url": "https://opencode.ai/zen/v1/responses" }
  }
}

What I already tried (none fixed it)

  • Upgraded the desktop app from 1.18.21 to 1.18.31 (fully applied).
  • Model options with store: false + include: ["reasoning.encrypted_content"] (makes the blob replay explicit -> same error).
  • Model options with reasoningEffort: "none" + reasoningSummary: "auto" (blobs still emitted by the upstream).
  • Removed all 160 reasoningEncryptedContent blobs from opencode.db; new sessions regenerate them and the error returns.
  • New session sometimes starts clean, then the error returns as history grows.

Evidence

  • Reasoning parts stored in opencode.db all carry an itemId (rs_...) plus reasoningEncryptedContent, content: null, summary: [] -- the upstream only hands out the opaque encrypted_content, consistent with Zen gateway does not forward reasoning/thinking stream for Muse Spark 1.2 #43584 for Muse Spark through the zen gateway.
  • The app event store has 55 instances of this exact 400 error. cf-placement: remote-ORD is constant in all of them, but the Cloudflare edge (cf-ray) varies across MIA, ATL, PHL, PIT, CLT, TPA, TLH.
  • With store defaulting to true, the 1.18.31 engine emits item_reference for reasoning (it does not resend the plaintext blob), yet the gateway still reports that the encrypted_content "was not issued to this caller".

Suspected root cause

The zen gateway issues encrypted_content bound to a specific caller/session when the item is created, but a later request that references that item is handled by a different backend/caller context (routing, worker, or upstream binding), so the signature check fails. This matches the class of bug in:

Here the failure happens even when opencode uses item_reference, so the fix likely belongs on the zen gateway side: pin the caller/session to the issuing backend, or stop issuing encrypted_content for models that only provide the opaque blob (fall back to summaries).

Environment

  • OS: Windows 11, 64-bit
  • App: OpenCode Desktop 1.18.31
  • Provider: Console (opencode.ai zen), model muse-spark-1.3-contributor-free
  • Endpoint: https://opencode.ai/zen/v1/responses

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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