Skip to content

TUI: returning to a conversation selects the model of the conversation opened before it #1364

Description

@ralphstodomingo

Description

In the TUI, switching between conversations can silently change a conversation's model. Open conversation A (recorded on model X), then conversation B (recorded on model Y), then return to A: the prompt now selects Y, and the next message in A goes to Y's provider. A's earlier messages still show X, so nothing signals the switch. Restarting the TUI clears it.

It happens when the first model stored for the agent in that launch comes from opening a conversation, which is the normal case when you open an existing conversation before picking a model.

Plugins

None

OpenCode version

altimate-code v0.12.3

Steps to reproduce

  1. With two providers available, create one conversation on each, e.g. altimate run -m <provider>/<model> "A" and altimate run -m altimate-free/altimate-base "B".
  2. Launch the TUI. Before picking any model, open conversation A from the session list (ctrl+x l). The prompt shows A's model.
  3. Open conversation B. The prompt shows B's model.
  4. Open conversation A again. The prompt shows B's model, while A's messages still show A's model.

Screenshot and/or share link

No response

Operating System

Linux (WSL2)

Terminal

tmux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions