Skip to content

Can't change model of a session without creating new one. #311

Closed

Description

@bigguy345

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.

Activity

  1. github-actions commented on Feb 1, 2026

    @github-actions
    Contributor

    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 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.

    AI generated by Issue Triage Agent

  2. bigguy345 commented on Feb 7, 2026

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions