Skip to content

Commit 5168b46

Browse files
committed
fix: align preload.ts interruptStream signature with IPC type
1 parent 00ddde4 commit 5168b46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/desktop/preload.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ const api: IPCApi = {
8282
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_SEND_MESSAGE, workspaceId, message, options),
8383
resumeStream: (workspaceId, options) =>
8484
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_RESUME_STREAM, workspaceId, options),
85-
interruptStream: (workspaceId: string, options?: { abandonPartial?: boolean }) =>
86-
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_INTERRUPT_STREAM, workspaceId, options),
85+
interruptStream: (
86+
workspaceId: string,
87+
options?: { abandonPartial?: boolean; sendQueuedImmediately?: boolean }
88+
) => ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_INTERRUPT_STREAM, workspaceId, options),
8789
clearQueue: (workspaceId: string) =>
8890
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_CLEAR_QUEUE, workspaceId),
8991
truncateHistory: (workspaceId, percentage) =>

0 commit comments

Comments
 (0)