From 2a7708bd492a5a78794c76ee43355cabe786943e Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Mon, 22 Jun 2026 16:09:56 +0900 Subject: feat: double-click tab to rename (PUT /conversations/:id/title) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Double-click a tab's title to enter inline edit mode. Enter or click away (blur) saves; Escape cancels. The rename is optimistic — the local tab updates immediately and PUT /title fires in the background. 683 tests green. --- src/app/App.svelte | 1 + src/app/store.svelte.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+) (limited to 'src/app') diff --git a/src/app/App.svelte b/src/app/App.svelte index ae09bd5..9225cc7 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -309,6 +309,7 @@ onSelect={(id) => store.selectTab(id)} onClose={(id) => store.closeTab(id)} onNewDraft={() => store.newDraft()} + onRename={(id, title) => store.renameTab(id, title)} /> { + // Best-effort — the local tab is already renamed. + }); + }, + invoke(surfaceId: string, actionId: string, payload?: unknown): void { const result = protocolInvoke( protocol, -- cgit v1.2.3