opencode
opencode copied to clipboard
[BUG] Using --prompt causes the wrong model to be selected.
Description
When you just run opencode, it launches with the default model which the user has selected. This is good.
But when you then run opencode --prompt "What is this repo?", instead of exactly the same behavior but with the prompt, it launches with Gemini 3 Pro via Github as the provider.
Adding --prompt has nothing to do with the model. So forcing this model which will often fail, is an undesirable and unrelated outcome that appears to be a bug.
Plugins
No response
OpenCode version
1.1.20
Steps to reproduce
opencode --prompt "What is this repo?"
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response