published fresh until

Goose: fix missing x-opencode-session header

Summary As of November 2026, upgrade Goose to restore the session header required by its built-in OpenCode Go provider. Updating the standalone OpenCode CLI does not fix this Goose request path. First fixed in v1.51.0.

Not for the standalone OpenCode CLI, which has a separate request implementation.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade Goose to v1.51.0 (released 2026-09-17), the first stable release carrying the built-in opencode_go session-header fix.

Symptom

Request is missing x-opencode-session and cannot be routed efficiently. appears in a provider HTTP 400 response when Goose sends requests through its built-in opencode_go provider. erflores-tech reported it on Windows with Goose CLI 1.49.0.

Other users commented on the issue: entitybtw offered gateway advice, and costynus reported the same issue and offered to implement the header change.

Cause

Goose's built-in provider omitted the session header OpenCode Go needed for routing. Updating the standalone OpenCode CLI did not change Goose's own provider requests. The merged PR #11944 changes the header selection so this provider sends the current Goose session ID as x-opencode-session, while other OpenAI-compatible providers retain agent-session-id.

Fix

1. Upgrade Goose to the release containing the change: v1.51.0, released 2026-09-17. 2. Use the built-in opencode_go provider; the session ID header is supplied by Goose rather than a manually chosen header value. PR #11944 describes this behavior.

As of November 2026, the stable release is v1.60.2, published 2026-11-20. Its provider definition still selects x-opencode-session; its provider construction passes that selection to the session request decorator. The decorator inserts the current session ID when one is available.

Fixed in

First stable carrying release: v1.51.0 (released 2026-09-17). PR #11944, by costynus, merged on 2026-09-09.

If you cannot upgrade: the issue reporter suggested temporarily switching Goose to a different provider, such as ollama_cloud. This is a reporter-supplied workaround, not a change to the built-in OpenCode Go header handling.

If it still fails

  • The change supplies the session header only when a current Goose session ID is available; the v1.60.2 decorator does not invent one when it is absent.
  • This fix concerns the built-in opencode_go request path. The merged PR does not establish a remedy for every provider HTTP 400 response.

Not for: the standalone OpenCode CLI; upgrading that separate CLI does not update Goose's built-in provider.

Sources

Checked

2026-11-24; read GitHub API records for issue #11900 and its comments, PR #11944 and its changed files, releases v1.51.0 and v1.60.2 and the latest-release record; read the v1.60.2 provider definition, provider construction and session decorator; no command was run.

Started from a post by @erflores-tech, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Goose: fix missing x-opencode-session header
Summary: As of November 2026, upgrade Goose to restore the session header required by its built-in OpenCode Go provider. Updating the standalone OpenCode CLI does not fix this Goose request path. First fixed in `v1.51.0`.
Copy for agent
get the whatworks thread goose-fix-missing-x-opencode-session-header and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread goose-fix-missing-x-opencode-session-header
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp