Skip to content

An admin gives a Bot an app from its card in one press - #2095

Merged
davidmckayv merged 6 commits into
mainfrom
fix/notion-cloud-one-press
Nov 24, 2026
Merged

davidmckayv merged 6 commits into
mainfrom
fix/notion-cloud-one-press

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

An admin of their own organization on OpenBot Cloud asked a Bot to connect Notion. The card said:

This Bot hasn't been given Notion. Only an admin can give it.

and pressing Give it to General Assistant answered "Notion has no tools to give yet. Open its page under Apps to see why, then try again."

Two things were wrong:

  1. The admin was told to ask an admin.
  2. The app had listed none of its tools yet, and the press stopped there, before the admin's sign-in, after which the app is asked for its tools again as them.

What changes

  • One press, signed in first. For any app that runs on the admin's own account, signs in, and they haven't signed in yet, the admin's press turns it on, opens their sign-in in the tab claimed on the click, and once their account is connected presses again, which gives the Bot the app's read-only tools. The card shows "Finish in the tab that opened." and "Waiting for Notion…" while it waits, as the other Connect buttons do. An admin already signed in still gives the app in one press with no sign-in. Covered for Notion and Gmail from the directory.
  • Words for an admin. The card and a Bot's Apps row shown to an admin say what is missing ("This Bot hasn't been given Notion yet.", "Notion isn't turned on yet.") instead of "Only an admin can...". The button beside the sentence is theirs.

The visual design is unchanged: the same card, button and status lines the other one-press flows use.

Tests

  • app/tests/app-access-action.test.tsx: the admin's sentences for each state, the admin's press on Notion and on Gmail (give, sign in, give again once connected), and an admin already signed in (one give, no sign-in).
  • app/tests/app-access-card-one-press.test.tsx: the real card, Notion and Gmail, from not turned on to ready, as the admin.
  • app/tests/admin-notion-one-press-layout.test.tsx (new, in CI's WebKit job, which runs both engines): Notion and Gmail, the real conversation and card in Chromium and WebKit, light and dark, driven with a real mouse in the app's stylesheet: the card, signing in, given, the app already on, and a press the server refuses.

Red on main, green here, for each of the new cases.

OPENBOT_APP_BROWSER=1 OPENBOT_APP_ENGINES=chromium,webkit OPENBOT_APP_SHOTS=<dir> bun test app/tests/admin-notion-one-press-layout.test.tsx saves each step's screenshot.

@davidmckayv
davidmckayv force-pushed the fix/notion-cloud-one-press branch 2 times, most recently from d7ff853 to 83058ca Compare November 23, 2026 23:46
@davidmckayv davidmckayv changed the title An admin gives a Bot Notion from its card in one press An admin gives a Bot an app from its card in one press Nov 24, 2026
@davidmckayv
davidmckayv force-pushed the fix/notion-cloud-one-press branch from fe735fa to 95845c9 Compare November 24, 2026 00:07
An admin asked a Bot to connect Notion. The card told them "This Bot hasn't
been given Notion. Only an admin can give it.", and Give it answered "Notion
has no tools to give yet". Notion lists its tools only once you've signed in,
and the press never signed the admin in.

The admin's press now turns Notion on, opens their Notion sign-in in the tab
claimed on the click, and once their account is connected presses again,
which gives the Bot Notion's read-only tools. An admin who has already signed
in to Notion still gives it in one press with no sign-in.

The card and a Bot's Apps row shown to an admin say what is missing ("This Bot
hasn't been given Notion yet.") instead of telling them to ask an admin, since
the button beside the sentence is theirs.
@davidmckayv
davidmckayv force-pushed the fix/notion-cloud-one-press branch from df8a172 to 08c3bf5 Compare November 24, 2026 00:25
@davidmckayv
davidmckayv merged commit ba3e930 into main Nov 24, 2026
35 checks passed
@davidmckayv
davidmckayv deleted the fix/notion-cloud-one-press branch November 24, 2026 00:36
davidmckayv added a commit that referenced this pull request Nov 24, 2026
Cherry-picked from main (ba3e930) for the next 1.2.0 candidate. The
release notes entry is the release's own, so CHANGELOG.md is left as
release/1.2 has it.

An admin asked a Bot to connect Notion. The card told them "Only an admin
can give it", and Give it answered "Notion has no tools to give yet". The
admin's press now turns the app on, gives it, and opens their sign-in or the
key form; where the app lists nothing until they sign in, the card gives it
once they're connected, with no second press. The card and a Bot's Apps row
shown to an admin say what is missing, never to ask an admin.
davidmckayv added a commit that referenced this pull request Nov 24, 2026
davidmckayv added a commit that referenced this pull request Nov 24, 2026
davidmckayv added a commit that referenced this pull request Nov 24, 2026
* Changelog: an app's own sign-in instead of a key, for 1.2.0-rc.4

* Changelog: an admin gives a Bot an app from its card in one press (#2095), for 1.2.0-rc.4

* Changelog: client-document sign-in and tool search at scale, for 1.2.0-rc.4

* Changelog: Connections leads to every app on OpenBot Cloud, for 1.2.0-rc.4

* Changelog: Only approved servers starts from the apps you added, for 1.2.0-rc.4

* Changelog: the MCP servers section is now Connectors, for 1.2.0-rc.4

* Changelog: one press of Reconnect in the move entry, and turning an app off from Connections, for 1.2.0-rc.4

* Changelog: tool search as it shipped, for 1.2.0-rc.4

* Changelog: OpenBot Cloud prefers the client document, for 1.2.0-rc.4

* Changelog: Connectors as it shipped, for 1.2.0-rc.4

* Changelog: the built-in vendor apps are no longer offered, for 1.2.0-rc.4

* Changelog: vendor sign-in as the code resolves it, for 1.2.0-rc.4
davidmckayv added a commit that referenced this pull request Nov 26, 2026
* Release v1.2.0-rc.1 (#2023)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 76c07bc for the next 1.2.0 candidate (#2040)

Carries main's tree at 76c07bc, keeping the release lines at 1.2.0-rc.1: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Bring release/1.2 to main at 043cc67 for the next 1.2.0 candidate (#2042)

Carries main's tree at 043cc67, keeping the release lines at 1.2.0-rc.1: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Release v1.2.0-rc.2 (#2043)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at acfcabc for the next 1.2.0 candidate (#2053)

Carries main's tree at acfcabc, keeping the release lines at 1.2.0-rc.2: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Release v1.2.0-rc.3 (#2054)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 0e04d18, with #2090, for the next 1.2.0 candidate (#2077)

* Bring release/1.2 to main at 0e04d18 for the next 1.2.0 candidate

* Changelog and upgrade policy for 1.2.0-rc.4

* Changelog: organization owners and Members' Remove for 1.2.0-rc.4

* Changelog: connecting from Browse apps also comes back where Connect was pressed

* Changelog: Add server offered only to an admin, for 1.2.0-rc.4

* Changelog: a Bot puts up the card of an app it doesn't hold first, for 1.2.0-rc.4

* Changelog: no more Agents pages and starter avatar colors under Unreleased; 1.1.3's Agents entry as released

* Changelog: one press of Connect on an app's card, for 1.2.0-rc.4

* Changelog: the move's one figure and the stuck window's alert (#2085), for 1.2.0-rc.4

* Changelog: a part of the app that didn't download loads again (#2092), for 1.2.0-rc.4

* Changelog: a Bot's answer reads as written after switching conversations (#2091), for 1.2.0-rc.4

* Changelog: on Windows, WSL 1 stays the default, for 1.2.0-rc.4

* Changelog: long names in member rows (#2082), for 1.2.0-rc.4

* Changelog: reconnecting an app after a move takes one press, for 1.2.0-rc.4

* About OpenBot says OpenBot (Self-Contained) or OpenBot Cloud, and as whom (#2090)

Nothing in OpenBot Desktop said which of the two it ran, or which account it used on OpenBot Cloud. About OpenBot now says where OpenBot runs above the build, on macOS and Windows alike, beside the version it already showed. On OpenBot Cloud (or another OpenBot the app is connected to) it names the email the app is signed in with, asked of that OpenBot once the sign-in is live with the same question the move to OpenBot Cloud asks (move_to_cloud::Api::account).

* Changelog: one connect card per app, for 1.2.0-rc.4

* An admin gives a Bot an app from its card in one press (#2095) (#2102)

Cherry-picked from main (ba3e930) for the next 1.2.0 candidate. The
release notes entry is the release's own, so CHANGELOG.md is left as
release/1.2 has it.

An admin asked a Bot to connect Notion. The card told them "Only an admin
can give it", and Give it answered "Notion has no tools to give yet". The
admin's press now turns the app on, gives it, and opens their sign-in or the
key form; where the app lists nothing until they sign in, the card gives it
once they're connected, with no second press. The card and a Bot's Apps row
shown to an admin say what is missing, never to ask an admin.

* One press of Reconnect connects the app (release/1.2) (#2107)

Cherry-pick of #2101 (75fde91) onto release/1.2, without its CHANGELOG line.

* Show an app's Connect card once in a conversation (#2100) (#2110)

A reply that called two tools of an app the person hadn't connected was refused twice, and each refusal drew the app's card, so the same card showed twice. Only a repeated show_app_access was left out before. Now every card-bearing step is counted: the first card a reply draws for an app (per Bot) stays, later ones in that reply are left out, and when a later reply draws the app's card again, the earlier one goes.

(cherry picked from commit 359c50b)

* Find, connect and remove any app from Connections in the team edition (release/1.2) (#2113)

#2106, picked onto release/1.2 for 1.2.0-rc.4. Connections in the team edition has Browse apps and a search that reaches the whole directory; an owner or admin adds and connects an app in one press and removes it from its own page; a member asks an admin to add it.

* Connectors: the allowlist's switches say what each app can do (release/1.2) (#2109) (#2114)

* Connectors: the allowlist's switches say what each app can do

The MCP servers section on Admin, Apps is now called Connectors, and its
switches match what happens.

- Off, every app can be used, so each app's switch reads on and can't be
  changed. Switching one did nothing before.
- Turning Only approved connectors on approves every app already added, so
  nothing in use is cut off. The admin turns off the ones they don't want.
- Routines and OpenBot settings read on, can't be switched, and say "Always on,
  for every Bot.". The allowlist never holds them back.
- Turning one app off no longer takes every other app off the list with it.
  Two apps with no address compared as equal, so every id entry was removed.
- The count reads the apps approved, not the entries on the list.
- An app added, connected or given to a Bot refreshes the section, since an
  admin's add approves it while the list is on.

The section title, its description, the switch, the address row and dialog,
the Admin overview line and the settings card all say connector. The layout is
unchanged.

Tests: app/tests/admin-connectors-section.test.tsx draws the section against
the API's answers and drives both states; the refresh tests now expect the
section's refresh beside the plugin screens'.

* Type what a refusal refetches in the refresh test

* Changelog for the 1.2.0-rc.4 picks (#2104)

* Changelog: an app's own sign-in instead of a key, for 1.2.0-rc.4

* Changelog: an admin gives a Bot an app from its card in one press (#2095), for 1.2.0-rc.4

* Changelog: client-document sign-in and tool search at scale, for 1.2.0-rc.4

* Changelog: Connections leads to every app on OpenBot Cloud, for 1.2.0-rc.4

* Changelog: Only approved servers starts from the apps you added, for 1.2.0-rc.4

* Changelog: the MCP servers section is now Connectors, for 1.2.0-rc.4

* Changelog: one press of Reconnect in the move entry, and turning an app off from Connections, for 1.2.0-rc.4

* Changelog: tool search as it shipped, for 1.2.0-rc.4

* Changelog: OpenBot Cloud prefers the client document, for 1.2.0-rc.4

* Changelog: Connectors as it shipped, for 1.2.0-rc.4

* Changelog: the built-in vendor apps are no longer offered, for 1.2.0-rc.4

* Changelog: vendor sign-in as the code resolves it, for 1.2.0-rc.4

* Changelog: Anthropic's prompt cache and OpenAI's tool search, for 1.2.0-rc.4 (#2116)

* Release v1.2.0-rc.4 (#2117)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at a9ba3fe for 1.2.0-rc.5 (#2181)

release/1.2 takes main's tree at a9ba3fe, keeping the release lines at 1.2.0-rc.4 (package.json, the desktop Cargo version, backend-images.env and release-policy.json's version). Create release PR then moves them to 1.2.0-rc.5.

* Release v1.2.0-rc.5 (#2183)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 238b165 for 1.2.0 (#2205)

release/1.2 takes main's tree at 238b165, keeping the release lines at 1.2.0-rc.5 (package.json, the desktop Cargo version, backend-images.env and release-policy.json's version). Create release PR then moves them.

* Release v1.2.0-rc.6 (#2207)

Co-authored-by: davidmckayv <[email protected]>

* Release v1.2.0 (#2210)

Co-authored-by: davidmckayv <[email protected]>

* Put release/1.2 back to 1.2.0-rc.6 after the 1.2.0 final stopped at its checks (#2217)

Release v1.2.0 (#2210) merged, but Publish release stopped in its checks before tagging or publishing anything: three client-version tests read a fixture that names 1.2.0 as a minimum newer than the app, which no longer holds once the app is 1.2.0. This puts the tree back to exactly v1.2.0-rc.6 (package.json, the desktop Cargo version, backend-images.env, release-policy.json's version and the changelog's Unreleased), so the test fix can land and become 1.2.0-rc.7, the candidate the final is cut from.

* Client version tests: keep the raised minimums above this release (#2219) (#2220)

The shared client-version fixture raised every app to 1.2.0 in its `raised`, `next` and
`security` answers, as a minimum newer than this app. The web app's and the phone app's tests
run those answers as the tree's own release, so on a tree whose package.json says 1.2.0 the app
is no longer below the minimum and three tests failed in the 1.2.0 release run.

The raised minimums are now 9.0.0, above any release of this line, and the tests that name the
minimum follow. The cases decide the same: below the minimum is refused, at it is served.

* Release v1.2.0-rc.7 (#2222)

Co-authored-by: davidmckayv <[email protected]>

* Release v1.2.0 (#2223)

Co-authored-by: davidmckayv <[email protected]>

* Keep main's own backend-images.env

* Start CI for the 1.2.0 merge-back

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: davidmckayv <[email protected]>
Co-authored-by: David McKay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant