Skip to content

New Session uses the wrong model when an agent is selected #38333

Description

@ValentinFrima

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions