Description
After switching models mid-session, the context limit percentage in the sidebar continues to display based on the previous model's context window, not the currently selected model.
Example
- Start session with model A (128k context)
- Use model A for several messages, context shows 50% used (64k/128k)
- Switch to model B (32k context)
- Context still shows 50% used, but should show 200% (64k/32k) or at least use model B's limit
Root Cause
In the sidebar context component, the context limit is calculated using the model from the last assistant message, not the currently selected model.
Proposed Fix
Use the currently selected model for context limit display when available.
MiMo Code Reference
This fix has been implemented in MiMo Code PR #1522: XiaomiMiMo/MiMo-Code#1522
Environment
- Kilo Code version: latest
- OS: Windows 11
- Terminal: PowerShell
Description
After switching models mid-session, the context limit percentage in the sidebar continues to display based on the previous model's context window, not the currently selected model.
Example
Root Cause
In the sidebar context component, the context limit is calculated using the model from the last assistant message, not the currently selected model.
Proposed Fix
Use the currently selected model for context limit display when available.
MiMo Code Reference
This fix has been implemented in MiMo Code PR #1522: XiaomiMiMo/MiMo-Code#1522
Environment