Repository navigation
Backlog
Backlog
Feature
Copy link
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:sessionsSession management, resume, history, session picker, and session state
Description
Describe the feature or problem you'd like to solve
/clear starts a completely new session, so in-session /model and /mcp enable changes are lost. The only way to keep them is to write global settings, which affects every other running Copilot process.
Current behavior (Copilot CLI 1.0.118, macOS):
/model <id>changes only the current session. After/clear, the model goes back to the settings, org or launch default./mcp enable <name>changes only the current session. It does not write~/.copilot/settings.json, although the docs say it saves the choice indisabledMcpServers. After/clear, the server is disabled again.--disable-mcp-serverlaunch flags are re-applied on/clear, overriding an in-session/mcp enable.- The workarounds,
/model --globalandcopilot mcp enable <name>, change the global settings. Every other running CLI process picks that up on its next/clearor launch.
Proposed solution
Treat model and MCP selection as state of the CLI process, separate from the conversation:
- On launch, use settings, policy and launch flags, as today.
- Within one CLI process, keep
/modeland/mcp enable/disablechanges across/clear(and/new)./clearshould reset the conversation, not the user's in-process choices. - On exit and relaunch, go back to settings.
- Keep the explicit persistence paths, such as
/model --globaland a--globaloption for/mcp enable, for users who want a global change.
Example prompts or workflows
- Launch with all MCP servers disabled in settings. Run
/mcp enable confluence, do some work, then/clear. confluence stays enabled in this window only. Restarting gives a clean slate. - Launch with the org default model. Run
/model claude-opus-5.5, then/clear. The new conversation still uses claude-opus-5.5. Other windows keep their own models.
Additional context
Repro for the MCP part:
copilot mcp disable confluence- Start
copilot, then run/mcp enable confluence./mcpshows it connected. ~/.copilot/settings.jsonis unchanged, andconfluenceis still indisabledMcpServers.- Run
/clear, then/mcp. confluence is disabled again.
Related: #5336
Metadata
Metadata
Assignees
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:sessionsSession management, resume, history, session picker, and session state
Activity