anomalyco / anomalyco/opencode
New Session uses the wrong model when an agent is selected
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
OpenCode Desktop 1.18.4
When creating a new session, selecting an agent that has a configured model does not apply that model. Instead, the session starts with the previously selected model. The correct model is only applied after reselecting the agent from within the active session.
Steps to reproduce
- Configure two agents with different models.
- Open the New Session dialog.
- Select an agent with a custom model.
- Start the session.
- Send a prompt.
Expected
The session starts with the model configured for the selected agent.
The model selector reflects the agent's configured model.
Actual
The New Session dialog keeps the previously selected model.
The new session starts using that incorrect model.
The correct model is only applied after reselecting the agent from within the active session.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the OpenCode Desktop 1.18.4 New Session dialog using two agents with different configured models. Trace the agent-selection and model-selection state from dialog submission into session creation; done means the selected agent's model is used immediately and shown in the model selector without reselecting the agent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100