feat: v0.5.16 - migrate to Responses API (#586)

* refactor: migrate from /v1/runs to /v1/responses streaming API

Replace EventSource-based polling with direct SSE streaming via the
/v1/responses endpoint across all server-side callers (chat-run-socket,
context-compressor, gateway-client, agent-clients). Messages are now
written to DB in real-time during streaming, eliminating post-run sync.
Frontend chat store adds tool_call_id tracking for deduplication.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* chore: bump version to 0.5.16 and add changelog

- Persist real API usage to usage table on response.completed
- Remove unused codex_reasoning_items field from message schema
- Fix unused variable warnings in chat-run-socket
- Bump version to 0.5.16
- Add changelog entries for 0.5.16 (8 locales)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-10 02:49:58 +08:00
committed by GitHub
parent a36c0a3095
commit 50122c5ff8
19 changed files with 843 additions and 866 deletions
+4
View File
@@ -914,6 +914,10 @@ export default {
new_0_5_15_9: '修复 Hermes Markdown 媒体渲染与同步重试',
new_0_5_15_10: '重构移除上游环境变量依赖',
new_0_5_15_11: '如果看板功能无法使用,请升级 hermes-agent',
new_0_5_16_1: '聊天流式接口从 /v1/runs 迁移至 /v1/responses,降低延迟',
new_0_5_16_2: '持久化真实 API 用量(token、缓存、推理)到用量统计表',
new_0_5_16_3: '官网导航栏新增 QQ 群二维码',
new_0_5_16_4: '移除消息 schema 中未使用的 codex_reasoning_items 字段',
new_0_5_13_1: '新增消息队列,顺序处理运行请求,避免并发冲突',
new_0_5_13_2: '支持二级 Skills 目录结构,扁平化 Skill 归入"杂项"分类',
new_0_5_13_3: '启动同步时过滤临时会话(eph_*),避免导入内部会话',