fix(agent-browser): restore bounded presentation lifecycle
This commit is contained in:
@@ -546,6 +546,18 @@ async function initialize(): Promise<void> {
|
||||
storage: codingProjectStorage,
|
||||
projectStore: codingProjectStore,
|
||||
browser: agentBrowser,
|
||||
requestAgentBrowserPresentation: (snapshot) => {
|
||||
hostEventBus.emit('agent-browser:show', snapshot);
|
||||
if (!window.isDestroyed() && !window.webContents.isDestroyed()) {
|
||||
window.webContents.send('agent-browser:show', snapshot);
|
||||
}
|
||||
},
|
||||
publishAgentBrowserState: (snapshot) => {
|
||||
hostEventBus.emit('agent-browser:state', snapshot);
|
||||
if (!window.isDestroyed() && !window.webContents.isDestroyed()) {
|
||||
window.webContents.send('agent-browser:state', snapshot);
|
||||
}
|
||||
},
|
||||
getLocalProxyCredential: () => getHostApiToken() || undefined,
|
||||
acquireBackgroundLease: (lease) => backgroundLifecycle!.acquireLease(lease),
|
||||
paths: {
|
||||
|
||||
Reference in New Issue
Block a user