Auto-compact on idle, aligned to the model's prompt cache TTL
Describe the feature or problem you'd like to solve
Prompt cache TTL is ~5 min. After an idle gap the next turn re-reads the full context uncached, at a cost and latency that scale with context size. Compaction only triggers on token thresholds today (#1688, #2333), so the only workaround is running /compact manually before going idle.
Proposed solution
A time-based compaction trigger, with the idle threshold tied to the active model's cache TTL.
Example prompts or workflows
No response
Additional context
No response
This is such a great idea
The equivalent feature on Claude Code is idleCompact. This is a major piece of missing functionality on Copilot CLI for effectively using Anthropic models imo.
So good that Claude went and added it! 🤔 does Antrhopic include copilot issue threads in their autonomous raw user feedback streams?