fix(browser): remove premature browser cleanup after subagent invocation (#24753)

This commit is contained in:
Gaurav
2026-04-07 05:17:31 +08:00
committed by GitHub
parent ad98294352
commit e116aa34f4
4 changed files with 56 additions and 11 deletions
@@ -34,10 +34,7 @@ import {
isToolActivityError,
} from '../types.js';
import type { MessageBus } from '../../confirmation-bus/message-bus.js';
import {
createBrowserAgentDefinition,
cleanupBrowserAgent,
} from './browserAgentFactory.js';
import { createBrowserAgentDefinition } from './browserAgentFactory.js';
import { removeInputBlocker } from './inputBlocker.js';
import { recordBrowserAgentTaskOutcome } from '../../telemetry/metrics.js';
import {
@@ -444,7 +441,6 @@ ${output.result}`;
} catch {
// Ignore errors for removing the overlays.
}
await cleanupBrowserAgent(browserManager, this.config, sessionMode);
}
}
}