fix: remove duplicate registerListeners call in startNewTask

The setOnTabProviderCreated callback already registers listeners on tab
providers created via openClineInNewTab. The explicit registerListeners
call in startNewTask caused double event registration for tab providers
created through that code path.
This commit is contained in:
Roo Code 2026-02-17 19:36:42 +00:00
parent aa0064802e
commit a6a9f1569a

View file

@ -186,7 +186,6 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
await vscode.commands.executeCommand("workbench.action.closeAllEditors")
provider = await openClineInNewTab({ context: this.context, outputChannel: this.outputChannel })
this.registerListeners(provider)
} else {
await vscode.commands.executeCommand(`${Package.name}.SidebarProvider.focus`)