contextTier setting in settings.json is persisted but not applied on session start (defaults to 200k)
Describe the bug
The contextTier setting in ~/.copilot/settings.json is persisted by the CLI but is not applied at session start. As a result, fresh sessions default to the 200k context window even when the user has explicitly opted in to the long-context tier via /model.
The model setting (model) and reasoning effort (effortLevel) from settings.json ARE applied on session start. Only contextTier silently gets dropped.
Affected version
GitHub Copilot CLI 1.0.55-1
Steps to reproduce the behavior
- Open
copilotand run/model. Select a model that supports a long-context tier (in my caseClaude Opus 4.7 (1M context)(Internal only)) and choose the long-context option. - Confirm
~/.copilot/settings.jsonnow contains:{ "model": "claude-opus-4.7-1m-internal", "contextTier": "long_context" } - Exit the CLI (or run
/restart). - Start a new session and run
/context.
Expected behavior
The new session honors the persisted contextTier: "long_context" setting and starts with the 1M token context window.
Actual behavior
The new session starts with the default 200k context window. The session.model_change event written at session start in ~/.copilot/session-state/<id>/events.jsonl looks like:
{"type":"session.model_change","data":{"newModel":"claude-opus-4.7-1m-internal"}}
Note the absence of contextTier. The model is applied from settings.json but the persisted context tier is not.
To get the long-context window back, I have to re-run /model and reselect the long-context tier every single session, which then emits a session.model_change event WITH contextTier: "long_context" and works correctly for that session only.
Additional context
- The CLI binary contains code paths that:
- Write
contextTiercorrectly tosettings.jsonfrom/model:Rt.contextTier = lt === "long_context" ? "long_context" : void 0 - Apply
contextTierwhen a model change event includes it:"contextTier" in e.data && (this.contextTier = e.data.contextTier ?? void 0)
- Write
- But the session-start path that applies the persisted
modelfield to the new session does not appear to include the persistedcontextTier. Looks like the load-and-apply step at session start needs to readcontextTierfromsettings.jsonand forward it into the initialsession.model_changeevent (or equivalent). - OS: macOS (Darwin, ARM)
- Shell: zsh
- Terminal: Terminal.app
- I confirmed this against three fresh sessions created today (after a CLI restart). All three emitted
session.model_changeevents with the model but nocontextTier.
I have also noticed that the Opus 4.6 is missing the 1m context option. Which makes it unusable.
I've noticed that even when setting the 1m context, it does not follow it, and continuously compacts: