Commit Graph

11 Commits

Author SHA1 Message Date
ekko d2fb61c6f9 record Hermes usage and add usage analytics 2026-07-11 13:17:38 +08:00
ekko 61aeac0ac2 record unified session usage 2026-07-11 12:25:12 +08:00
Kagura bde8f2b0eb fix: write session ended_at/end_reason when bridge run terminates (#2004)
* fix: write session ended_at/end_reason when bridge run terminates (#1998)

When an agent run completes (normally or with error), the session's
ended_at and end_reason fields were never written to the database.
This caused the UI to permanently show 'thinking' for completed sessions.

Add updateSession calls at three run termination points:
- handleBridgeRun catch block (early error, empty queue)
- resumeBridgeRun catch block (stream error, empty queue)
- applyBridgeChunkAsync normal completion (no queued runs)

Each call is wrapped in try-catch to prevent masking the original
error or producing unhandled rejections.

Closes #1998

* fix: reopen bridge sessions when runs restart

---------

Co-authored-by: ekko <fqsy1416@gmail.com>
2026-07-09 12:41:28 +08:00
ekko 09e6806fe8 [codex] Stabilize Codex context usage (#1960)
* Stabilize Codex context usage

* Update coding agent failure tests
2026-07-06 10:50:36 +08:00
ekko 9f22804b63 align coding agent tool events (#1941) 2026-07-05 14:33:33 +08:00
牧濑红莉栖(BOT) 0dc16d5642 fix(chat): 为代码代理会话显示推理和上下文设置 (#1938)
* fix(chat): 为代码代理会话显示推理和上下文设置

* docs(chat-chain): 记录代码代理推理上下文设置

* test(chat): 更新代码代理推理上下文断言

* fix(chat): 刷新代码代理上下文用量

---------

Co-authored-by: x1051445024 <你的GitHub注册邮箱>
2026-07-05 14:09:50 +08:00
ekko f5a292663b [codex] Complete workflow run execution (#1759)
* feat: add workflow builder page

* Add workflow schema and editor controls

* feat: add workflow builder persistence

* feat: add workflow socket and agent skills

* feat: complete workflow run execution

* test: fix workflow ci coverage failures

---------

Co-authored-by: Codex <codex@openai.com>
2026-06-24 12:54:08 +08:00
ekko 83e37bac02 feat: add outbound relay and MCU login flow (#1580)
* add global agent chat relay

* add model run MCP auth

* avoid codex prompt inflation

* guide codex to use hermes lan tools

* truncate long tool call previews

* write codex MCP env inline

* log codex developer prompt

* remove codex prompt debug logging

* fix codex chat tool history

* log codex chat proxy requests

* write codex proxy debug to server log

* log codex upstream tool requests

* expand codex mcp namespaces for custom providers

* remove codex proxy debug logging

* add hermes mcp openapi relay

* fix: improve mcp docs and chat run cleanup

* feat: add mcu relay login flow

* fix ci test expectations

* fix group chat deeplink e2e expectation

---------

Co-authored-by: Codex <codex@openai.com>
2026-06-16 09:16:26 +08:00
ekko 087314e06c fix coding agent reasoning and queue overlay (#1443) 2026-06-09 19:15:33 +08:00
ekko 85b496ddf0 [codex] fix Codex tool final text (#1413)
* fix codex tool final text

* Limit coding agent tool output storage

* Fix chat chain change metadata
2026-06-08 20:21:37 +08:00
ekko c52e2c25df [codex] add coding agent chat sessions (#1410)
* feat: add coding agent chat runner

* fix claude coding agent model identity

* Revert "fix claude coding agent model identity"

This reverts commit eff87d6e28.

* align claude coding agent settings with main

* remove claude bare mode from coding agent runner

* fix coding agent chat sessions
2026-06-08 15:35:52 +08:00