Skip to content

400 MissingSessionID from opencode-go #1

Description

@BrackRat

Symptom

Running DeepSeek Harness (dsh) against an opencode / opencode-go model fails on every request:

400: {"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it"}

Cause

The Console Go gateway routes a request to the node holding its conversation's cache, and it reads the conversation id from the x-opencode-session header. The pi coding agent sends that header from its provider-attribution layer, but @earendil-works/pi-ai — the shared library dsh uses for these routes — does not implement it yet. That is why the same key and model work in pi and fail in dsh.

Fix

Install the plugin from this repository and restart the dsh process that serves your UI:

dsh plugin --profile web add github:BrackRat/dsh-opencode-session

It injects x-opencode-session (the live session id) and x-opencode-client: dsh on opencode / opencode-go routes only, without patching any installed files; explicitly configured headers still win.

Still failing?

Comment here with:

  • dsh --version
  • the provider / model id you used
  • the exact error text

so we can tell whether a newer dsh or pi-ai build changed the internals the plugin hooks.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions