Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/desktop/build/entitlements.mac.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,5 @@
Hardened Runtime denies the camera no matter what the user allowed. -->
<key>com.apple.security.device.camera</key>
<true/>
<!-- WebAuthn hybrid transport (passkey on the user's phone via QR) rides
Bluetooth proximity; without this the QR option silently never
completes in signed builds. -->
<key>com.apple.security.device.bluetooth</key>
<true/>
</dict>
</plist>
560 changes: 560 additions & 0 deletions apps/desktop/e2e/browser-sign-in-prompts.spec.ts

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion apps/desktop/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ mac:
NSScreenCaptureUsageDescription: Mothership captures approved app windows to understand and verify computer-use actions.
NSMicrophoneUsageDescription: Sim uses your microphone for voice input in Chat and for meetings you join in the built-in browser.
NSCameraUsageDescription: Sim uses your camera for meetings you join in the built-in browser, such as Google Meet.
NSBluetoothAlwaysUsageDescription: Sim uses Bluetooth to complete passkey sign-ins with a nearby phone in the built-in browser.
Comment thread
waleedlatif1 marked this conversation as resolved.
Resolved
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
notarize: true
Expand Down
15 changes: 15 additions & 0 deletions apps/desktop/src/main/browser-agent/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ import {
setFocusedInputValue,
typeIntoElement,
} from '@/main/browser-agent/page-functions'
import {
appLaunchNoticeForContents,
pagePromptForContents,
respondToPagePrompt,
} from '@/main/browser-agent/page-prompts'
import { isPanelVisible, panelWindow } from '@/main/browser-agent/panel'
import {
withFailedPostActionObservation,
Expand Down Expand Up @@ -560,6 +565,8 @@ function pageStateFor(contents: WebContents, tabId: string): BrowserPageState {
const issue = session.pageIssueForContents(contents)
const mediaPermissionRequest = session.mediaPermissionRequestForContents(contents)
const dialog = session.pageDialogForContents(contents)
const prompt = pagePromptForContents(contents)
const appLaunchNotice = appLaunchNoticeForContents(contents)
return {
scopeId: session.getBrowserScopeId(),
tabId,
Expand All @@ -571,6 +578,8 @@ function pageStateFor(contents: WebContents, tabId: string): BrowserPageState {
...(issue ? { issue } : {}),
...(mediaPermissionRequest ? { mediaPermissionRequest } : {}),
...(dialog ? { dialog } : {}),
...(prompt ? { prompt } : {}),
...(appLaunchNotice ? { appLaunchNotice } : {}),
}
}

Expand Down Expand Up @@ -809,6 +818,7 @@ export function initDriver(
})
},
onDownloadsChanged: (state) => callbacks.onDownloadsChanged?.(state),
onAgentNotice: recordNotice,
},
getMainWindow,
persistence,
Expand Down Expand Up @@ -5505,6 +5515,11 @@ export async function handlePanelAction(
}
if (action.action === 'enable-page-dialogs') {
session.enablePageDialogs()
if (action.pagePrompts === true) session.enablePagePrompts()
return
}
if (action.action === 'respond-prompt') {
respondToPagePrompt(session.getBrowserScopeId(), action)
return
}
if (action.action === 'respond-dialog') {
Expand Down
Loading
Loading