Preserve focus when opening browser with non-agentic tool (#312344)

This commit is contained in:
Kyle Cutler
2026-04-24 07:08:01 -07:00
committed by GitHub
parent 3981b5d4fd
commit 4b8f34ef7e
@@ -63,7 +63,7 @@ export class OpenBrowserToolNonAgentic implements IToolImpl {
logBrowserOpen(this.telemetryService, 'chatTool');
const browserUri = BrowserViewUri.forId(generateUuid());
await this.editorService.openEditor({ resource: browserUri, options: { pinned: true, viewState: { url: params.url } } });
await this.editorService.openEditor({ resource: browserUri, options: { pinned: true, preserveFocus: true, viewState: { url: params.url } } });
return {
content: [{