feat: always-on context usage display with sub-1% precision - #13093
feat: always-on context usage display with sub-1% precision#13093thanhnnict wants to merge 3 commits into
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
I have read the CLA Document and I hereby sign the CLA |
Show context usage percentage persistently in the UI so users can proactively monitor context consumption — inspired by Kiro IDE. Changes: - ContextStatus: always visible when history exists (removed 60% threshold) - ContextStatus: show '—' instead of misleading '0%' when no data yet - ContextStatus: show 1 decimal place for sub-1% usage (e.g. '0.3%') - ContextStatus: color-coded bar (muted < 60%, description >= 60%, warning >= 80%, error=pruned) - ContextStatus: show percentage number next to bar - ResponseActions: always show 'Compact' label on last message - ResponseActions: show percentage prefix (e.g. '0.3% · Compact') - ResponseActions: hide percentage prefix when no context data yet
9c3a455 to
98a2bdf
Compare
|
I have read the CLA Document and I hereby sign the CLA |
|
Hi @sestinj - Friendly ping on this feature PR. This makes the context usage indicator always visible (when there is chat history) so users can proactively manage their context budget instead of being surprised by pruning. I understand this is a UX change that may need product alignment - happy to make it opt-in via a setting or adjust the design. Can also add screenshots showing before/after behavior if that helps the review. Thanks for maintaining this great project. |

Problem
Currently, the context usage indicator in Continue is only shown when:
This means users have no visibility into context consumption during normal usage. They only discover context limits when it is too late — after pruning has already occurred and information has been lost.
Solution
Make the context usage indicator always visible when there is conversation history, with enhanced precision and visual feedback.
Changes
ContextStatus.tsx
history.length > 0(removed 60% threshold)0.3%instead of rounding to0%< 60%: muted (subtle, non-intrusive)>= 60%: description (noticeable)>= 80%: warning (attention needed)pruned: error (action required)—before first message (whencontextPercentageis undefined)ResponseActions.tsx
Compactlabel on the last message0.3% · CompactScreenshots
Context usage at 4% — always visible, subtle when low
Context usage at 80%+ — warning color, clearly visible
Inspiration
This UX pattern is inspired by Kiro IDE, which always shows context usage to help users proactively manage their context budget.
Backward Compatibility
history.length === 0