From 55d8cd30e75b3c6e98562dd2f9df6cdf209c4f40 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 12 Jan 2026 03:24:59 +0000 Subject: [PATCH] fix: show activity indicator on TaskStarted event, not just TaskActive The activity indicator was only showing when transitioning from an idle state back to active (TaskActive event), but TaskActive was not emitted when a task first started - it was only emitted after the user responded to an ask after the task went idle. This fix shows the activity indicator when TaskStarted fires, which happens when the task loop begins. This ensures the indicator shows immediately when the user starts a task or the agent begins processing. --- src/core/webview/ClineProvider.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 5add8caa23..26f7d32065 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -220,7 +220,10 @@ export class ClineProvider this.emit(RooCodeEventName.TaskCreated, instance) // Create named listener functions so we can remove them later. - const onTaskStarted = () => this.emit(RooCodeEventName.TaskStarted, instance.taskId) + const onTaskStarted = () => { + this.activityIndicator.show() + this.emit(RooCodeEventName.TaskStarted, instance.taskId) + } const onTaskCompleted = (taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage) => { this.activityIndicator.hide() this.emit(RooCodeEventName.TaskCompleted, taskId, tokenUsage, toolUsage)