Remembering the last model used (issue with simultanious clients) #3809

Closed
opened 2026-02-16 17:41:33 -05:00 by yindo · 3 comments
Owner

Originally created by @sirmo on GitHub (Dec 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Question

First of all. Love this project! Thanks to all the contributors.

Here is my question: I like running multiple agents at the same time which I use with local models. I have two inference machines. I usually work on two different projects at the same time. I have different models configured for different machines.

One issue I have is that when I restart sessions OpenCode client picks the last Model used globally. But since I'm alternating between different projects and different sessions. The last used model is global, and I always have to change the model between sessions.

Would it be possible to have the last model used default to the last model used per project? Basically when changing the model in a project open code remembers the last model used in that project alone. And not change the global default for all the other projects?

It would be cool perhaps if there was an option to change this behavior.

Originally created by @sirmo on GitHub (Dec 23, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question First of all. Love this project! Thanks to all the contributors. Here is my question: I like running multiple agents at the same time which I use with local models. I have two inference machines. I usually work on two different projects at the same time. I have different models configured for different machines. One issue I have is that when I restart sessions OpenCode client picks the last Model used globally. But since I'm alternating between different projects and different sessions. The last used model is global, and I always have to change the model between sessions. Would it be possible to have the last model used default to the last model used per project? Basically when changing the model in a project open code remembers the last model used in that project alone. And not change the global default for all the other projects? It would be cool perhaps if there was an option to change this behavior.
yindo closed this issue 2026-02-16 17:41:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4930: Feature Request: Retain current model and agent selection when switching sessions

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be a duplicate of existing issues. Please check: - #4930: Feature Request: Retain current model and agent selection when switching sessions Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 23, 2025):

I think this is dup of 4930?

@rekram1-node commented on GitHub (Dec 23, 2025): I think this is dup of 4930?
Author
Owner

@sirmo commented on GitHub (Dec 24, 2025):

#4930 deals with the default model stickiness between the sessions of the same project.

This is about not making the default model a global settings for all projects and instead making the model sticky per project.

I realize this may be too complex of an ask. So feel free to close the issue. I will just manually change the model each time since my situation is probably not that common.

@sirmo commented on GitHub (Dec 24, 2025): #4930 deals with the default model stickiness between the sessions of the same project. This is about not making the default model a global settings for all projects and instead making the model sticky per project. I realize this may be too complex of an ask. So feel free to close the issue. I will just manually change the model each time since my situation is probably not that common.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3809