* 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>
* 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