Skip to content

feat: improve session compression flow and add manual compaction entrypoint#296

Merged
GCWing merged 2 commits intoGCWing:mainfrom
wsp1911:main
Mar 28, 2026
Merged

feat: improve session compression flow and add manual compaction entrypoint#296
GCWing merged 2 commits intoGCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented Mar 28, 2026

  • refine session compression semantics by introducing clearer boundary/summary handling, preserving the latest live context, and carrying forward todo snapshots for more stable recompression
  • add a manual /compact session compaction entrypoint across the desktop API, backend coordination flow, and chat input so users can trigger compaction on demand
  • surface richer compression metadata in events and UI, including whether the result came from a model summary, local fallback truncation, or no summary output

wsp1911 added 2 commits March 28, 2026 17:36
Introduce explicit compression boundary/summary semantics, preserve the latest live context during compression, and carry forward todo snapshots for more stable recompression behavior.
- add desktop-only `/compact` entrypoint and backend command flow for user-triggered session compaction
- persist manual compaction as a dedicated maintenance turn while excluding it from model-visible dialog history
- separate manual compaction from passive keep-last-turn behavior by collapsing all non-system turns
- distinguish model-based compression from local structured truncation in events, stored results, and tool-card UI
- tighten compression summary handling by retaining only `<summary>` output and cleaning fallback-rendered user history
@GCWing GCWing merged commit 8837154 into GCWing:main Mar 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants