You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't change model of a session without creating new one. #311
On py module. There doesn't seem to be a way to change model of an existing session without creating a new one using CopilotClient.new_session, and if I do that I lose all context and .copilot/session_state disk files of the old session.
I've labeled this as an enhancement for the Python SDK. You're correct—currently, there's no way to change the model of an existing session. The model parameter is only available when creating a session via create_session(), and resume_session() doesn't support updating it.
This is a valid feature request. The workaround for now is to create a new session with the desired model, though as you noted, this means losing the existing session state and .copilot/session_state files.
Activity
github-actions commentedon Feb 1, 2026
Thanks for opening this issue, @bigguy345!
I've labeled this as an enhancement for the Python SDK. You're correct—currently, there's no way to change the model of an existing session. The
modelparameter is only available when creating a session viacreate_session(), andresume_session()doesn't support updating it.This is a valid feature request. The workaround for now is to create a new session with the desired model, though as you noted, this means losing the existing session state and
.copilot/session_statefiles.bigguy345 commentedon Feb 7, 2026
Resolved