feat(desktop): open new sessions in compact windows

Add the Electron IPC bridge and rebindable shortcut for opening an unkeyed scratch window on the new-session draft.
This commit is contained in:
Brooklyn Nicholson
2026-06-15 20:59:57 -05:00
parent 0a8f3e21b8
commit 98c294126b
11 changed files with 180 additions and 72 deletions
+1
View File
@@ -6,6 +6,7 @@ contextBridge.exposeInMainWorld('hermesDesktop', {
touchBackend: profile => ipcRenderer.invoke('hermes:backend:touch', profile),
getGatewayWsUrl: profile => ipcRenderer.invoke('hermes:gateway:ws-url', profile),
openSessionWindow: (sessionId, opts) => ipcRenderer.invoke('hermes:window:openSession', sessionId, opts),
openNewSessionWindow: () => ipcRenderer.invoke('hermes:window:openNewSession'),
getBootProgress: () => ipcRenderer.invoke('hermes:boot-progress:get'),
getConnectionConfig: profile => ipcRenderer.invoke('hermes:connection-config:get', profile),
saveConnectionConfig: payload => ipcRenderer.invoke('hermes:connection-config:save', payload),