feat: add History page for browsing Hermes sessions (v0.5.5) (#370)

Features:
- Add dedicated History page for browsing Hermes session history
- Independent session state (does not interfere with active chat)
- Auto-select first CLI session on page load
- Filter out api_server and cron sources

Components:
- New HistoryView.vue with isolated state management
- New HistoryMessageList.vue with session prop support
- Filters empty content and tool messages without toolName

Backend:
- Add GET /api/hermes/sessions/hermes endpoint (excludes api_server)
- Add GET /api/hermes/sessions/hermes/:id endpoint (404s for api_server)
- Add fetchHermesSessions() and fetchHermesSession() API functions

Cleanup:
- Remove localStorage session caching
- Simplify profile switching cache management
- Clean up废弃 cache cleanup calls

i18n:
- Add "History" translation to all 8 locales
- Add v0.5.5 changelog entries in all languages
- 🎉 Happy Labor Day!

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-01 11:27:43 +08:00
committed by GitHub
parent e2f35d3caf
commit 3ba76ad19b
19 changed files with 1473 additions and 47 deletions
+15 -7
View File
@@ -70,6 +70,7 @@ export default {
sidebar: {
chat: 'Chat',
search: 'Search',
history: 'History',
jobs: 'Jobs',
models: 'Models',
profiles: 'Profiles',
@@ -734,13 +735,20 @@ export default {
// Changelog
changelog: {
new_0_5_4_1: 'Happy Labor Day! No work this Labor Day, please bear with us if there are any issues 🎉',
new_0_5_4_2: 'Fix concurrent chat sessions event cross-talk with WebSocket event routing refactoring',
new_0_5_4_3: 'Fix cron job edit payloads with partial PATCH to support long prompt name-only edits',
new_0_5_4_4: 'Fix web terminal Hermes CLI availability after Docker deployment',
new_0_5_4_5: 'Add workspace dialog i18n translations for title and improve session persistence',
new_0_5_4_6: 'Support code block copy feedback with user notifications',
new_0_5_4_7: 'Align usage analytics with Hermes state DB schema',
new_0_5_5_1: '🎉 Happy Labor Day! No work this Labor Day, please bear with us if there are any issues',
new_0_5_5_2: 'Add History page for browsing Hermes session history',
new_0_5_5_3: 'History page manages session state independently without interfering with active chat',
new_0_5_5_4: 'History page auto-loads and selects first CLI session by default',
new_0_5_5_5: 'Add HistoryMessageList component with session prop injection support',
new_0_5_5_6: 'Filter empty content messages and tool messages without toolName for better display',
new_0_5_5_7: 'Remove localStorage session cache, all session data now fetched directly from backend',
new_0_5_5_8: 'Optimize profile switching logic by removing废弃 cache cleanup calls',
new_0_5_4_1: 'Fix concurrent chat sessions event cross-talk with WebSocket event routing refactoring',
new_0_5_4_2: 'Fix cron job edit payloads with partial PATCH to support long prompt name-only edits',
new_0_5_4_3: 'Fix web terminal Hermes CLI availability after Docker deployment',
new_0_5_4_4: 'Add workspace dialog i18n translations for title and improve session persistence',
new_0_5_4_5: 'Support code block copy feedback with user notifications',
new_0_5_4_6: 'Align usage analytics with Hermes state DB schema',
new_0_5_3_1: 'Improve reasoning process display with persistence across page refreshes',
new_0_5_3_2: 'Optimize stringified array format parsing to extract thinking/text/tool_calls',
new_0_5_3_3: 'Improve log display by removing ellipsis and showing full content',