Remembering the last model used (issue with simultanious clients)
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.
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.
I think this is dup of 4930?
#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.