From 2753a40b0e61054d51e771cca019adec7c9baa10 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sun, 24 May 2026 13:34:16 -0500 Subject: [PATCH 1/2] fix(desktop): title edit hits correct backend endpoint PATCH /v1/conversations/{id}/title?title=... matches the Python backend route (conversations.py:177) and the Flutter client (conversations.dart:146). The previous call to PATCH /v1/conversations/{id} with a JSON body hit a nonexistent route, returned 404, and silently discarded the edit. Co-Authored-By: Claude Sonnet 4.6 --- desktop/Desktop/Sources/APIClient.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/desktop/Desktop/Sources/APIClient.swift b/desktop/Desktop/Sources/APIClient.swift index 694f12f764..82a49e4ab5 100644 --- a/desktop/Desktop/Sources/APIClient.swift +++ b/desktop/Desktop/Sources/APIClient.swift @@ -369,15 +369,12 @@ extension APIClient { /// Updates the title of a conversation func updateConversationTitle(id: String, title: String) async throws { - struct TitleUpdate: Encodable { - let title: String - } - - let url = URL(string: baseURL + "v1/conversations/\(id)")! + var components = URLComponents(string: baseURL + "v1/conversations/\(id)/title")! + components.queryItems = [URLQueryItem(name: "title", value: title)] + let url = components.url! var request = URLRequest(url: url) request.httpMethod = "PATCH" request.allHTTPHeaderFields = try await buildHeaders(requireAuth: true) - request.httpBody = try JSONEncoder().encode(TitleUpdate(title: title)) let (_, response) = try await session.data(for: request) guard let httpResponse = response as? HTTPURLResponse, From 1c6c8c0f885dd04f3b21612955194712f86b7022 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sun, 24 May 2026 13:35:16 -0500 Subject: [PATCH 2/2] desktop: changelog - conversation title edit fix Co-Authored-By: Claude Sonnet 4.6 --- desktop/CHANGELOG.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/CHANGELOG.json b/desktop/CHANGELOG.json index 1ae2848758..173775cafb 100644 --- a/desktop/CHANGELOG.json +++ b/desktop/CHANGELOG.json @@ -1,5 +1,7 @@ { - "unreleased": [], + "unreleased": [ + "Fixed editing a conversation title not saving" + ], "releases": [ { "version": "0.11.421",