MCPcopy Index your code
hub / github.com/codeaashu/claude-code / checkAutoCompactDisabled

Function checkAutoCompactDisabled

src/utils/contextSuggestions.ts:219–235  ·  view source on GitHub ↗
(
  data: ContextData,
  suggestions: ContextSuggestion[],
)

Source from the content-addressed store, hash-verified

217}
218
219function 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

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected