Merge origin/main and preserve nonblocking project entry
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-09-07 12:53:55 +08:00
66 changed files with 4068 additions and 519 deletions

View File

@@ -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: {