MCPcopy Index your code
hub / github.com/continuedev/continue / getAutoCompactMessage

Function getAutoCompactMessage

extensions/cli/src/compaction.ts:255–258  ·  view source on GitHub ↗
(model: ModelConfig)

Source from the content-addressed store, hash-verified

253 * @returns A descriptive message explaining why compaction is needed
254 */
255export function getAutoCompactMessage(model: ModelConfig): string {
256 const limit = getModelContextLimit(model);
257 return `Approaching context limit (${(limit / 1000).toFixed(0)}K tokens). Auto-compacting chat history...`;
258}
259
260/**
261 * Check if the chat history exceeds the auto-compact threshold.

Callers 1

handleAutoCompactionFunction · 0.85

Calls 1

getModelContextLimitFunction · 0.85

Tested by

no test coverage detected