( data: ContextData, suggestions: ContextSuggestion[], )
| 217 | } |
| 218 | |
| 219 | function checkAutoCompactDisabled( |
| 220 | data: ContextData, |
| 221 | suggestions: ContextSuggestion[], |
| 222 | ): void { |
| 223 | if ( |
| 224 | !data.isAutoCompactEnabled && |
| 225 | data.percentage >= 50 && |
| 226 | data.percentage < NEAR_CAPACITY_PERCENT |
| 227 | ) { |
| 228 | suggestions.push({ |
| 229 | severity: 'info', |
| 230 | title: 'Autocompact is disabled', |
| 231 | detail: |
| 232 | 'Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually.', |
| 233 | }) |
| 234 | } |
| 235 | } |
| 236 |
no test coverage detected