Skip to content

[Feature]: /status should use per-model contextWindow instead of global contextTokens #12739

@blortski

Description

@blortski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions