Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Eca does not work with OpenCode via the openai-responses, nor with openai-chat

オープン
#652 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
clojure
領域
api, backend

調査の方向性

The payload names no source file or test. Start with the provider configuration in the report (api set to openai-responses, url https://opencode.ai/inference/) and the request path /inference/v1/responses in the OpenCode log, which show what ECA sends. Done would mean the request is accepted by OpenCode with a documented provider setup, or a clear explanation of why the model rejects this protocol.

索引モデルが issue の本文から書いたものです。

説明

bug

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

When using eca-emacs with OpenCode I get the error message:

Short description

[OPENAI] Unexpected response status: %s body: %s 400 {"type":"error","error":{"type":"ModelProtocolUnsupported","message":"Model does not support this protocol."}}

To reproduce

  • Start eca (eca-desktop or eca-emacs) with the following configuration. The session-id is hardcoded just to see if it works
{
  "providers": {
    "opencode": {
      "api": "openai-responses",
      "url": "https://opencode.ai/inference/",
      "key": "<my-token>",
      "extraHeaders": {
        "User-Agent": "eca-emacs/1.0",
	"x-opencode-session": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c"
      },
      "models": {
	"big-pickle": {}
      }
    }
  }
}
  • The model list is updated. Select a model e.g. claude-sonnet-5.5
  • Type in a small prompt like "Summarize current project".

The above error appears. The session id and all the data appear correctly in the logs on OpenCode. The error message there is

{
  "event": {
    "id": "<id>",
    "requestID": "<id>",
    "workspaceID": "org_<workspace id>",
    "startedAt": 1792165205881,
    "finishedAt": 1792165206017,
    "durationMs": 136,
    "outcome": "rejected",
    "category": "inference",
    "protocol": "openai-responses",
    "product": "standard",
    "path": "/inference/v1/responses",
    "method": "POST",
    "stream": true,
    "sessionID": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c",
    "userAgent": "eca-emacs/1.0",
    "userID": "user_<my-user-id>",
    "requestedModel": "claude-sonnet-5-5",
    "model": "claude-sonnet-5-5",
    "provider": "opencode",
    "statusCode": 400,
    "errorCode": "inference_failed",
    "errorMessage": "The inference request failed.",
    "reasoningMode": "effort",
    "reasoningEffort": "medium",
    "country": "CZ",
    "region": "Plzeň Region",
    "city": "Pilsen",
    "requestHeaders": {
      "content-length": "26163",
      "content-type": "application/json",
      "user-agent": "eca-emacs/1.0",
      "x-opencode-session": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c"
    },
    "metadata": {},
    "attemptCount": 0,
    "attempts": []
  }
}

Expected behavior

I expect the assistant to respond with the project summary.

Doctor

ECA version: 0.165.0

Server cmd: /home/joh/.emacs.d/eca/eca server

Workspaces: /home/joh/Devel/Lights/lumio

Default model: opencode/big-pickle (API key (oc_**********XtS))

Logged providers: None
Relevant env vars: 
XDG_ACTIVATION_TOKEN=kwi*****-79
DEBUGINFOD_URLS=https://debuginfod.archlinux.org

Additional notes

  • Maybe this is related to #649.
  • I tried also to use openai-chat. The setup above was the only one that let me discover the available models.
主要言語
Clojure
スター
1k
フォーク
82
平均マージ
3日 39分
マージ済み PR(30日)
15

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

editor-code-assistant/eca のほかの issue

editor-code-assistant/eca の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。