From e217ab078fd0f57f1e4b448b497b6815c2675eae Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 28 Jul 2025 18:37:15 +0000 Subject: [PATCH] fix: update RooCodeAPIEvents interface for backward compatibility --- packages/types/src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/types/src/api.ts b/packages/types/src/api.ts index 6fb181b573..c2a134a35e 100644 --- a/packages/types/src/api.ts +++ b/packages/types/src/api.ts @@ -12,7 +12,8 @@ export interface RooCodeAPIEvents { message: [data: { taskId: string; action: "created" | "updated"; message: ClineMessage }] taskCreated: [taskId: string] taskStarted: [taskId: string] - taskModeSwitched: [taskId: string, mode: string] + taskAgentSwitched: [taskId: string, agent: string] + taskModeSwitched: [taskId: string, mode: string] // Backward compatibility alias taskPaused: [taskId: string] taskUnpaused: [taskId: string] taskAskResponded: [taskId: string]