Commit Graph

5 Commits

Author SHA1 Message Date
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 af07ed00a3 fix coding agent model switching (#1725) 2026-06-22 10:25:23 +08:00
ekko b2d8f1c12d split studio mcp toolsets (#1687) 2026-06-20 11:04:03 +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 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