Repository navigation
From the Home Screen, an app's sign-in opens in OpenBot itself - #2902
Merged
Merged
Conversation
Opened from an iPhone's or iPad's Home Screen, a card's Connect claimed a new tab on the click, which a Home Screen web app doesn't have: iOS showed a blank page over the app, and the sign-in only went on in Safari, whose cookies and storage the web app doesn't share. A refused press (Gusto, which this OpenBot can't connect) left that blank page over the card saying why. There, a connect press now claims no tab. OpenBot's step before a Composio sign-in is the dialog Connections already uses, this window goes to the sign-in, and the vendor brings it back to the app's page, which goes back to where Connect was pressed once the account is connected. A press with nothing to sign in to opens nothing. In a browser tab, embedded, and in OpenBot Desktop's window, nothing changes. Test: home-screen-connect-browser, in Chromium and WebKit at a phone's width, red on main.
… step go on by itself
davidmckayv
marked this pull request as ready for review
December 3, 2026 22:55
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 22:55
12 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
From an iPhone's Home Screen (OpenBot added with Add to Home Screen, so it opens as an app of its own), connecting an app from a Bot's card was broken. Reported in dogfooding:
Why. A card's Connect (and Browse apps, an app's access row, Connect another account) claims a new tab on the click with
window.open(""), then points it at the sign-in once the server answers. A Home Screen web app has no tabs. iOS shows that window as a sheet over the app, and the blank page claimed on the click is what the person saw. From there the sign-in could only go on in Safari, whose cookies and storage the web app doesn't share, so the app's page the vendor returns to wasn't the web app's.Gusto is a different failure that the blank page hid. Gusto comes through Composio, and this OpenBot has no OAuth client registered with Gusto, so turning it on is refused with "Gusto can't be connected on this OpenBot yet. Gusto allows a sign-in only once OpenBot is registered with Gusto, and it isn't yet." The press had already claimed the blank sheet, so the refusal sat behind it, and Open in Safari had nothing to open. This PR doesn't make Gusto connectable. It makes the refusal the first thing the person sees.
The fix, web app only. Opened from an iPhone's or iPad's Home Screen (
navigator.standalone, or the standalone display mode, on Apple mobile), a connect press claims no tab:connect-return.tsalready writes into a new tab). Once the account is listed as connected, the app's page goes back there, so the person lands back in the conversation with the card reading the app as ready.confirmOnReturn), as OpenBot Desktop's window does.In a browser tab, embedded in another app's page and in OpenBot Desktop's window, nothing changes. No words change, and no screen's design changes: the dialog, the card and the app's page are the existing ones.
Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
Web app.
Proof
Red before, green after.
app/tests/home-screen-connect-browser.test.tsxloads the real conversation view, card and app page under Connections as OpenBot opened from an iPhone's Home Screen (what Safari tells a page there:navigator.standalone, the standalone display mode, an iPhone's user agent, a 390px touch screen).window.openis the browser's own, so a tab claimed shows up as a page of its own. The server's state outlasts the trip to the vendor and back.On main, both Home Screen tests fail in Chromium and WebKit, each with a blank page opened (
["about:blank"]), and the browser-tab test passes. With the fix, all 6 pass in Chromium and WebKit.Screenshots, WebKit and Chromium at 390px, as a Home Screen web app. The Gusto card matches the one in the report, minus the blank page over it.
Back in the conversation the stand-in has no Bot to carry on with, so the card reads "Ready to use." In the app, a card that is the conversation's latest thing offers Continue for an app made ready while the person was away from it (
carry-on.ts). That part isn't driven by this test.Also run: the related app tests (connect cards, Browse apps, embedded sign-in, app access, consent step): 143 pass.
one-press-connect-layoutandconsent-handoffin Chromium and WebKit: 52 pass. Format, lint and typecheck. The whole app suite: 6570 pass, 6 fail, none of them near this change: the 2 intask-thread.test.tsxpass when that file runs alone (26 of 26), and the other 4 are desktop workbench tests that needdesktop/'s own install, which this worktree doesn't have.Not proven: a real iPhone. Playwright's WebKit can't run as a Home Screen web app, and this Mac's iOS Simulator has no window to add one from. The test tells the page what Safari tells it there, and uses the browser's own
window.open. What's left to see on a phone is that iOS keeps a sign-in on another site inside the web app when the web app itself goes there; the change confirms the account when the web app has the focus back in case iOS shows it over the app instead.Ships in 1.2.11; main is frozen for the 1.2.10 cut.