-
-
Notifications
You must be signed in to change notification settings - Fork 53k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
When a session approaches the model's context limit, the user gets a hard failure:
⚠️ Context overflow — prompt too large for this model. Try a shorter message or a larger-context model.
This is abrupt and loses the user's message. There's no way to know you're approaching the limit until you hit it.
Proposed Solution
Add a warning threshold (e.g., 80-90% of context) that:
-
Warns the user before overflow:
⚠️ Context at 85% capacity. Consider using /forget or /new soon. -
Optionally auto-compact when threshold is reached (configurable)
-
Show context usage in
/statusoutput (tokens used / max)
Benefits
- Users can proactively manage context before losing messages
- Better UX than hard failures
- Helps users understand when to start fresh sessions
- Could enable smarter auto-compaction strategies
Configuration (suggested)
contextWarning:
enabled: true
threshold: 0.85 # warn at 85%
autoCompact: false # or true to auto-compact at thresholdReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request