From 4a6769ec08dc3167fd39cc57ece71e5ef0b2a0de Mon Sep 17 00:00:00 2001 From: Nathan Esquenazi Date: Sat, 4 Apr 2026 19:00:02 -0700 Subject: [PATCH] docs: v0.32 release notes, version bump for auto-compaction handling Co-Authored-By: Claude Opus 4.6 (1M context) --- CHANGELOG.md | 30 +++++++++++++++++++++++++++++- SPRINTS.md | 4 ++-- static/index.html | 2 +- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce10f0b..90189e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,34 @@ --- +## [v0.32] Auto-Compaction Handling + /compact Command (Issue #90) +*April 5, 2026 | 424 tests* + +### Features +- **Auto-compaction detection.** When the agent's `run_conversation()` triggers + context compression and rotates the session ID, the WebUI detects the mismatch + and renames the session file + cache entry so messages don't split across files. +- **`compressed` SSE event.** Frontend receives a notification when compression + fires, shows a system message ("Context was auto-compressed") and a toast. +- **`/compact` slash command.** Type `/compact` to request the agent compress + the conversation context. Sends a natural-language message that triggers the + agent's compression preflight. +- **Real context window data.** The context usage indicator now uses actual + `context_length`, `threshold_tokens`, and `last_prompt_tokens` from the agent's + compressor instead of the client-side model name lookup. Tooltip shows the + auto-compress threshold. Hides gracefully when the agent has no compressor. + +### Architecture +- `api/streaming.py`: Session ID mismatch detection after `run_conversation()`, + file rename, SESSIONS cache update under lock, `compressed` SSE event, + `context_length`/`threshold_tokens`/`last_prompt_tokens` in usage dict. +- `static/commands.js`: `/compact` command. +- `static/messages.js`: `compressed` SSE event handler. +- `static/ui.js`: `_syncCtxIndicator()` rewritten to use server-side compressor + data instead of client-side model estimates. + +--- + ## [v0.31.2] CLI session delete fix *April 5, 2026 | 424 tests* @@ -1113,4 +1141,4 @@ Three-panel layout: sessions sidebar, chat area, workspace panel. --- -*Last updated: v0.31, April 4, 2026 | Tests: 424* +*Last updated: v0.32, April 5, 2026 | Tests: 424* diff --git a/SPRINTS.md b/SPRINTS.md index 1b860cc..daa085a 100644 --- a/SPRINTS.md +++ b/SPRINTS.md @@ -1,6 +1,6 @@ # Hermes Web UI -- Forward Sprint Plan -> Current state: v0.31 | 424 tests | Daily driver ready +> Current state: v0.32 | 424 tests | Daily driver ready > This document plans the path from here to two targets: > > Target A: 1:1 feature parity with the Hermes CLI (everything you can do from the @@ -898,5 +898,5 @@ genuinely differentiating for an open-source project --- *Last updated: April 5, 2026* -*Current version: v0.31.2 | 424 tests* +*Current version: v0.32 | 424 tests* *Next sprint: Sprint 24 (Web Polish + Bug Fix Pass)* diff --git a/static/index.html b/static/index.html index a0526b1..a4baf4b 100644 --- a/static/index.html +++ b/static/index.html @@ -13,7 +13,7 @@