docs: v0.32 release notes, version bump for auto-compaction handling

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nathan Esquenazi
2026-04-04 19:00:02 -07:00
parent 2797e5189b
commit 4a6769ec08
3 changed files with 32 additions and 4 deletions

View File

@@ -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*

View File

@@ -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)*

View File

@@ -13,7 +13,7 @@
<body>
<div class="layout">
<aside class="sidebar">
<div class="sidebar-header"><div class="logo">H</div><div><h1 style="margin:0;font-size:15px;font-weight:700;letter-spacing:-.01em">Hermes</h1><div style="font-size:10px;color:var(--muted);opacity:.8;margin-top:1px">v0.31.2</div></div></div>
<div class="sidebar-header"><div class="logo">H</div><div><h1 style="margin:0;font-size:15px;font-weight:700;letter-spacing:-.01em">Hermes</h1><div style="font-size:10px;color:var(--muted);opacity:.8;margin-top:1px">v0.32</div></div></div>
<div class="sidebar-nav">
<button class="nav-tab active" data-panel="chat" data-label="Chat" onclick="switchPanel('chat')" title="Chat">&#128172;</button>
<button class="nav-tab" data-panel="tasks" data-label="Tasks" onclick="switchPanel('tasks')" title="Tasks">&#128197;</button>