Manual compaction {#if !canCompact}

Open or start a conversation to compact its history.

{:else if compactError}

{compactError}

{:else if compactResult}

Compacted — {compactResult.summarized} messages summarized, {compactResult.kept} kept.

{:else}

Summarizes old messages into a system summary + retains the most recent messages.

{/if}
Auto-compact threshold
tokens {#if savingThreshold} {/if}

Current: {thresholdLabel}
0 disables auto-compact. Default is {DEFAULT_THRESHOLD.toLocaleString("en-US")}.

{#if thresholdError}

{thresholdError}

{:else if thresholdSaved}

Saved.

{/if}