mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 19:20:16 +00:00
181641db6b
The delete endpoint only removed sessions from the WebUI JSON store, silently no-oping on CLI sessions (which live in state.db). The trash button showed 'Conversation deleted' but the session reappeared on next refresh. Fix: after the existing WebUI delete, also call delete_cli_session() which removes the session + messages from state.db. Wrapped in try/except so WebUI-only sessions still delete normally. New delete_cli_session() in api/models.py mirrors the existing get_cli_session_messages() pattern for state.db access. Closes #87 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>