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: '对话',
search: '搜索',
history: '历史',
jobs: '任务',
models: '模型',
profiles: '用户',
@@ -736,13 +737,20 @@ export default {
// 更新日志
changelog: {
new_0_5_4_1: '五一劳动节快乐!这个劳动节就不劳动啦,如果有问题大家忍忍 🎉',
new_0_5_4_2: '修复并发聊天会话事件串扰问题,重构 WebSocket 事件路由机制',
new_0_5_4_3: '修复 cron job 编辑 payload,支持长提示词的仅名称编辑',
new_0_5_4_4: '修复 Docker 部署后 Web 终端无法使用 Hermes CLI 的问题',
new_0_5_4_5: '添加工作区对话框标题 i18n 翻译,改进会话持久化',
new_0_5_4_6: '支持代码块复制反馈,显示用户通知',
new_0_5_4_7: '对齐使用分析与 Hermes 状态数据库架构',
new_0_5_5_1: '🎉 五一劳动节快乐!这个劳动节就不劳动啦,如果有问题大家忍忍',
new_0_5_5_2: '新增历史页面,用于浏览 Hermes 会话历史记录',
new_0_5_5_3: '历史页面独立管理会话状态,不影响当前聊天页面的活动会话',
new_0_5_5_4: '历史页面默认自动加载并选中第一个 CLI 类型的会话',
new_0_5_5_5: '新增 HistoryMessageList 组件,支持通过 props 注入会话数据',
new_0_5_5_6: '过滤空内容消息和无 toolName 的 tool 消息,提升历史记录显示质量',
new_0_5_5_7: '移除 localStorage 会话缓存,所有会话数据改为直接从后端获取',
new_0_5_5_8: '优化 profile 切换逻辑,移除废弃的缓存清理调用',
new_0_5_4_1: '修复并发聊天会话事件串扰问题,重构 WebSocket 事件路由机制',
new_0_5_4_2: '修复 cron job 编辑 payload,支持长提示词的仅名称编辑',
new_0_5_4_3: '修复 Docker 部署后 Web 终端无法使用 Hermes CLI 的问题',
new_0_5_4_4: '添加工作区对话框标题 i18n 翻译,改进会话持久化',
new_0_5_4_5: '支持代码块复制反馈,显示用户通知',
new_0_5_4_6: '对齐使用分析与 Hermes 状态数据库架构',
new_0_5_3_1: '改进思考过程显示,支持页面刷新后持久化',
new_0_5_3_2: '优化字符串化数组格式解析,自动提取思考/文本/工具调用',
new_0_5_3_3: '改进日志显示,移除省略号完整展示日志内容',