When switching models via /model, the /status command continues to show the global agents.defaults.contextTokens value (e.g., 1,000,000 for Opus) even when the active model has a different contextWindow defined in models.providers.
For example, switching to a local MLX model with contextWindow: 128000 still shows "Context: 22k/1.0m" in /status.
Expected behavior: /status should read the active model's contextWindow from the provider config and display that as the denominator, not the global contextTokens default.
This is especially important for multi-model setups where users switch between cloud models (large context) and local models (smaller context) — the current display gives a false sense of how much context remains.
When switching models via /model, the /status command continues to show the global
agents.defaults.contextTokensvalue (e.g., 1,000,000 for Opus) even when the active model has a differentcontextWindowdefined inmodels.providers.For example, switching to a local MLX model with
contextWindow: 128000still shows "Context: 22k/1.0m" in /status.Expected behavior: /status should read the active model's
contextWindowfrom the provider config and display that as the denominator, not the globalcontextTokensdefault.This is especially important for multi-model setups where users switch between cloud models (large context) and local models (smaller context) — the current display gives a false sense of how much context remains.