Issue with dynamically specifying the subagent model
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
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"
}
}
}
Fixed in latest release!
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?
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 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).