eca icon indicating copy to clipboard operation
eca copied to clipboard

Issue with dynamically specifying the subagent model

Open RCmerci opened this issue 8 months ago • 4 comments

Describe the bug When I use an OpenAI model, the subagent is dynamically set to an unsupported model.

To Reproduce

  • login openai pro ;; openai: Subscription (oauth)
  • prompt: use subagent explorer to search 'xxx' in repo
  • eca will start subagent 'explorer' using gpt-4.1-mini or gpt-5-mini (it depends)
  • these 2 models are unsupported : OpenAI response status: 400 body: {"detail":"The 'gpt-5-mini' model is not supported when using Codex with a ChatGPT account."}

Expected behavior

subagents use models supported

Doctor

ECA version: 0.115.2

Server cmd: /Users/rcmerci/.emacs.d/eca/eca server --log-level debug

Workspaces: /Users/rcmerci/gh-repos/logseq

Default model: openai/gpt-5.3-codex (Subscription (oauth), expires 2026-03-28 19:50)

Logged providers: 
openai: Subscription (oauth), expires 2026-03-28 19:50

Relevant env vars: 


Credential files: None found

Screenshots

Image Image

Additional context my config.json:

{
  "defaultModel": "openai/gpt-5.3-codex",
  "agent": {
    "code": {
      "variant": "high"
    },
    "plan": {
      "variant": "high"
    },
    "explorer": {
      "defaultModel": "openai/gpt-5.3-codex",
      "variant": "medium"
    }
  },
  "toolCall": {
    "approval": {
      "byDefault": "allow"
    }
  }
}

RCmerci avatar Mar 20 '26 03:03 RCmerci

Fixed in latest release!

ericdallo avatar Mar 26 '26 21:03 ericdallo

Follow-up ticket. https://github.com/editor-code-assistant/eca/issues/381

But can @RCmerci test the current changes if it improves the problem on your side?

zikajk avatar Mar 27 '26 12:03 zikajk

version: 0.120.1 I still got the similar 400 messages:

OpenAI response status: 400 body: {"detail":"The 'gpt-5-mini' model is not supported when using Codex with a ChatGPT account."}

RCmerci avatar Mar 28 '26 09:03 RCmerci

@RCmerci Now it is fine. When LLM doesn't get a long list of models, it doesn't go crazy. The only drawback is that if you want to specify a model now, you must provide an exact name (or let the LLM correct itself after it fails, since the list of available models/variants is part of the error).

zikajk avatar Mar 29 '26 19:03 zikajk