Repository navigation
Open by default, with a switch to lock apps down: every action on one press, apps open to Bot owners, an every-Bot switch, browser search without a search app - #2160
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 21:44
davidmckayv
force-pushed
the
spec/every-bot-app
branch
3 times, most recently
from
November 24, 2026 22:33
2c3038e to
7db261c
Compare
davidmckayv
force-pushed
the
spec/every-bot-app
branch
from
November 24, 2026 23:02
7db261c to
4ec110b
Compare
davidmckayv
force-pushed
the
spec/every-bot-app
branch
from
November 24, 2026 23:33
4ec110b to
47303ce
Compare
updateApp takes everyBot, and an app says whether it was given to every Bot. True gives the app to every Bot in the organization and to Bots made later; false takes back what that gave, and nothing a Bot was given another way. Where each person connects their own account, a Bot uses the account of whoever is asking.
…efault, and a Bot without a search app searches with its browser giveBotApp, approveBotApp and approveAppAccessRequest without named actions give every action of the app, each write still behind the approvals in front of it. An app is open to Bot owners unless an administrator closes it (ownerGrants null now means any). A Bot holding no search tool searches with its own browser, tries another engine past a cookie wall, and never tells the person an administrator has to add search.
…cked down lockedDown in the organization's settings. Open: a person's connected apps are on for their own Bots, one press gives every action, apps are open to Bot owners, and the apps that need no sign-in are on for every Bot. Locked down: the earlier model, where an admin approves and one press gives reads. Switching to locked down takes nothing back unless takeBackWhatOpenGave is sent with it.
The organization's settings answer is closed to new fields for apps already released, so lockedDown moves to /settings/apps: any member reads it, an administrator changes it, and takeBackWhatOpenGave goes with it. everyBot on Routines or OpenBot settings changes nothing when true and is refused when false.
davidmckayv
force-pushed
the
spec/every-bot-app
branch
from
November 25, 2026 00:24
8ef4223 to
d365792
Compare
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
OpenBot's people side is open by default. Admins restrict it; they never have to open it up. This PR changes the API and the Bot's guidance to match.
API
lockedDownon a new resource,GET/PATCH /api/v2/organizations/{organizationId}/settings/apps(getAppsSetting,updateAppsSetting). Every member may read it; only an admin changes it. It isn't added to the organization's settings, because apps already released read that answer withadditionalProperties: falseand would reject a new field.false, the default, is Open:trueis Locked down, the earlier model: an admin approves, and one press gives the reads.takeBackWhatOpenGave: truewith it. Sent withlockedDown: false, it is ignored.AppOwnerGrantssay what each does under either setting.updateApptakes an optionaleveryBot, and every app answerseveryBot.truegives the app to every Bot in the organization, Bots made later included.falsetakes back what that gave. Nothing a Bot was given any other way changes.truechanges nothing andfalseanswers 403, as removing them does.giveBotApp,approveBotAppandapproveAppAccessRequestwith no actions named now give every action of the app, not only the ones that read. Actions that change something still ask first wherever the approval rules say so. The example of the "nothing a Bot can only read with" refusal is gone, because that refusal can no longer happen.ownerGrants: nullmeans the default, and the default is nowanyfor every app: an app is open to Bot owners unless an admin closes it or the organization's apps are locked down.Bot guidance (
shared/bot-prompt.ts)Compatibility
Only adds to the API's shape: one new resource, one new optional request field and one new response field on an app. The organization's settings answer is unchanged, so released apps that hold it closed keep working. The other changes are to descriptions and examples. Leaving
everyBotout of a request does what it did before.Checks
bun run api:generate,api:lint, typecheck and lint all pass.shared/bot-prompt.test.ts: the two new tests fail against main'sbot-prompt.tsand pass here.