aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/ipc/handlers.ts
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-28 19:34:02 -0800
committerbndw <ben@bdw.to>2026-02-28 19:34:02 -0800
commit283013c09d4855529e846951a1e090f0f16030a8 (patch)
treee78c84c85b07806770faee99af7280d0a83eadc8 /src/main/ipc/handlers.ts
parent9a636af9090b122db2e55737fca3e78550aab9df (diff)
feat: auto session naming
Diffstat (limited to 'src/main/ipc/handlers.ts')
-rw-r--r--src/main/ipc/handlers.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/ipc/handlers.ts b/src/main/ipc/handlers.ts
index d9beaf0..145c6e2 100644
--- a/src/main/ipc/handlers.ts
+++ b/src/main/ipc/handlers.ts
@@ -31,7 +31,11 @@ export function registerIpcHandlers(mainWindow: BrowserWindow): void {
31 } 31 }
32 sessions.deleteSession(id); 32 sessions.deleteSession(id);
33 }); 33 });
34 34
35 ipcMain.handle("sessions:rename", (_, id: string, name: string) => {
36 sessions.updateSession(id, { name });
37 });
38
35 ipcMain.handle("sessions:get", (_, id: string) => sessions.getSession(id)); 39 ipcMain.handle("sessions:get", (_, id: string) => sessions.getSession(id));
36 40
37 // Messages 41 // Messages