Skip to content

Commit 5eecf1d

Browse files
committed
refactor: rename WORKSPACE_QUEUE_CLEAR to WORKSPACE_CLEAR_QUEUE
Follow naming convention of other workspace IPCs (e.g., WORKSPACE_TRUNCATE_HISTORY)
1 parent b71b029 commit 5eecf1d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/browser/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const webApi: IPCApi = {
225225
invokeIPC(IPC_CHANNELS.WORKSPACE_RESUME_STREAM, workspaceId, options),
226226
interruptStream: (workspaceId, options) =>
227227
invokeIPC(IPC_CHANNELS.WORKSPACE_INTERRUPT_STREAM, workspaceId, options),
228-
clearQueue: (workspaceId) => invokeIPC(IPC_CHANNELS.WORKSPACE_QUEUE_CLEAR, workspaceId),
228+
clearQueue: (workspaceId) => invokeIPC(IPC_CHANNELS.WORKSPACE_CLEAR_QUEUE, workspaceId),
229229
truncateHistory: (workspaceId, percentage) =>
230230
invokeIPC(IPC_CHANNELS.WORKSPACE_TRUNCATE_HISTORY, workspaceId, percentage),
231231
replaceChatHistory: (workspaceId, summaryMessage) =>

src/common/constants/ipc-constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const IPC_CHANNELS = {
2525
WORKSPACE_SEND_MESSAGE: "workspace:sendMessage",
2626
WORKSPACE_RESUME_STREAM: "workspace:resumeStream",
2727
WORKSPACE_INTERRUPT_STREAM: "workspace:interruptStream",
28-
WORKSPACE_QUEUE_CLEAR: "workspace:queue:clear",
28+
WORKSPACE_CLEAR_QUEUE: "workspace:clearQueue",
2929
WORKSPACE_TRUNCATE_HISTORY: "workspace:truncateHistory",
3030
WORKSPACE_REPLACE_HISTORY: "workspace:replaceHistory",
3131
WORKSPACE_STREAM_HISTORY: "workspace:streamHistory",

src/desktop/preload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const api: IPCApi = {
7575
interruptStream: (workspaceId: string, options?: { abandonPartial?: boolean }) =>
7676
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_INTERRUPT_STREAM, workspaceId, options),
7777
clearQueue: (workspaceId: string) =>
78-
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_QUEUE_CLEAR, workspaceId),
78+
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_CLEAR_QUEUE, workspaceId),
7979
truncateHistory: (workspaceId, percentage) =>
8080
ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_TRUNCATE_HISTORY, workspaceId, percentage),
8181
replaceChatHistory: (workspaceId, summaryMessage) =>

src/node/services/ipcMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ export class IpcMain {
10001000
}
10011001
);
10021002

1003-
ipcMain.handle(IPC_CHANNELS.WORKSPACE_QUEUE_CLEAR, (_event, workspaceId: string) => {
1003+
ipcMain.handle(IPC_CHANNELS.WORKSPACE_CLEAR_QUEUE, (_event, workspaceId: string) => {
10041004
try {
10051005
const session = this.getOrCreateSession(workspaceId);
10061006
session.clearQueue();

0 commit comments

Comments
 (0)