You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
When auto-compaction fires (compaction.auto: true), it runs synchronously in the session loop, freezing the prompt input until it completes. On slow models or large contexts, this can lock the user out for minutes. The TUI becomes unresponsive and you can't even type.
Proposed behavior
Compaction runs as a background job — user keeps chatting uninterrupted
New messages sent during compaction get appended to the uncompacted history
Once compaction finishes, the old history gets replaced by the compacted summary
A toast or indicator shows "Compacting…" while it runs
On completion, emit session.compacted and swap in the compacted context
Existing foundation
SDK already defines CompactionPart and EventSessionCompacted — the event plumbing is there, only the execution path needs to become non-blocking.
Activity
github-actions commentedon May 13, 2026
This issue might be a duplicate of existing issues. Please check:
Please close one of the two issues to avoid splitting the discussion.
github-actions commentedon Jul 13, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.