Function: launchSessionBrowser()
launchSessionBrowser(
opts):Promise<SessionBrowser>
Defined in: packages/aiui-util/src/browser.ts:179
Launch the session browser detached (it deliberately outlives the launching process — it's the user's window too) and wait for its debug endpoint.
debugPort 0 lets the OS pick a free port; Chrome reports the choice via DevToolsActivePort, which is removed first so a stale file from a previous run can't win the poll. Fails fast if the process exits early — the classic cause being an already-running Chrome on the same profile without a debug port, which swallows the new invocation as a URL-handoff and exits.
Parameters
opts
binary
string
debugPort?
number
extensionDirs?
string[]
Unpacked extensions to load (comma-joined into one --load-extension).
headless?
boolean
startUrl?
string
userDataDir
string
Returns
Promise<SessionBrowser>