You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
In OpenCode Desktop, start a session with model opencode/muse-spark-1.3-contributor-free (Console provider).
Send a few messages (1 to several).
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
Summary
OpenCode Desktop (Windows) with the free model
muse-spark-1.3-contributor-freeserved 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
opencode/muse-spark-1.3-contributor-free(Console provider).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)
store: false+include: ["reasoning.encrypted_content"](makes the blob replay explicit -> same error).reasoningEffort: "none"+reasoningSummary: "auto"(blobs still emitted by the upstream).reasoningEncryptedContentblobs fromopencode.db; new sessions regenerate them and the error returns.Evidence
opencode.dball carry anitemId(rs_...) plusreasoningEncryptedContent,content: null,summary: []-- the upstream only hands out the opaqueencrypted_content, consistent with Zen gateway does not forward reasoning/thinking stream for Muse Spark 1.2 #43584 for Muse Spark through the zen gateway.cf-placement: remote-ORDis constant in all of them, but the Cloudflare edge (cf-ray) varies acrossMIA, ATL, PHL, PIT, CLT, TPA, TLH.storedefaulting totrue, the 1.18.31 engine emitsitem_referencefor reasoning (it does not resend the plaintext blob), yet the gateway still reports that theencrypted_content"was not issued to this caller".Suspected root cause
The zen gateway issues
encrypted_contentbound 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:store: false).X-Target-Id).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 issuingencrypted_contentfor models that only provide the opaque blob (fall back to summaries).Environment
muse-spark-1.3-contributor-freehttps://opencode.ai/zen/v1/responses