feat(chat): Enhance session management with new API endpoints and filtering options

- Added `status` query parameter to `list_sessions_api` for filtering sessions by their status (active/closed).
- Introduced `close_all_sessions_api` endpoint to allow users to close all active sessions for the current actor.
- Updated `SessionRepository` to support status filtering in session listing and implemented logic for closing active sessions.
- Improved Redis connection settings for better performance and reliability.

This update enhances the chat functionality by providing more control over session management, improving user experience and system efficiency.
This commit is contained in:
2026-09-10 22:30:07 +08:00
parent 48355cee8e
commit 9d4d4aaa6d
59 changed files with 2261 additions and 265 deletions
@@ -128,7 +128,7 @@
</div>
<p style="margin-top:2rem; font-size:0.9rem; color: var(--color-text-muted);">
仓库现状(2026-09-10):STAFF-30001 含 risk_demo;<code>python -m pytest</code> → <strong>795 passed</strong>。
仓库现状(2026-09-10):STAFF-30001 含 risk_demo;<code>python -m pytest</code> → <strong>804 passed</strong>。
</p>
</div>
</div>