fix(sessions): rename via PATCH /api/sessions/{id} + move actions to hold menu (issue #785) (#838)

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-08-07 14:20:21 +03:00
1 parent f34bfa7cf8
commit 9d0baa78fd
4 files changed
+318 -201

No files matched your search

@@ -188,7 +188,9 @@ interface HermesApiService {
@GET("api/sessions/stats")
suspend fun getSessionStats(): Response<SessionStatsResponse>
@PUT("api/sessions/{id}/rename")
// Rename is PATCH /api/sessions/{id} with {title} — the backend never
// registered PUT .../rename (404; issue #785). Desktop uses the same PATCH.
@PATCH("api/sessions/{id}")
suspend fun renameSession(
// Preserve slashes in session IDs — backend generates IDs containing '/' characters (issue #468).
// Contract: The server-generated sessionId must only contain URL-safe characters (no ?, #, or spaces).