Hide the self-host banner from deployments that pay for Intelligence - #722
Merged
Merged
Conversation
The banner offering help self-hosting OpenBot stays on by default, but a deployment whose Intelligence entitlement is active on a paid plan (pro, team, team_self_hosted, enterprise) or comes from an AWS Marketplace licence no longer shows it. Free, developer, inactive and unreadable entitlements still show it. The server reads the entitlement through the Intelligence client it already holds, keeps the answer for ten minutes, refreshes it in the background when stale, waits at most a second for the first answer, and falls back to showing the bar on any error, logged once per run of failures. The changelog's upgrade note also names the banner and the malformed egress range change from #706, which refuses a saved network policy that contains such a range as a whole.
davidmckayv
requested review from
MikeRyanDev,
guidovizoso,
mxmzb and
tylerslaton
as code owners
October 2, 2026 22:22
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.
The self-host banner from #720 stays on by default, but a deployment that pays for Intelligence no longer shows it.
The rule
The server reads the deployment's Intelligence entitlement (
getRuntimeEntitlementson the client OpenBot already holds) and hides the banner when the entitlement is ready, active, and either on a paid plan (pro,team,team_self_hosted,enterprise) or from an AWS Marketplace licence.free,developer, an inactive entitlement, a missing plan code and every non-ready status show it.OPENBOT_SELF_HOST_BANNER=falsestill turns it off for everybody without asking Intelligence.The plan codes come from Intelligence's license verifier (
LicenseTier) and its entitlement routes, where a self-hosted licence reports itsplan_codeor tier as the plan code.Never slows a page
Upgrade note
The CHANGELOG's Before upgrading note now also covers:
/0. It is now refused, and a saved network policy containing one is refused as a whole (server/src/computer/policy-network.ts:55-60), so the Bots under it fall back to an empty allowlist and reach nothing until the rule is fixed.Checks
bun run test:ciagainst a migrated pgvector database: 5,833 pass and 13 fail on this branch, 5,811 pass and the identical 13 fail onmain. All 13 are local-environment only.ready, active,managedOrgSubscription, planenterprise./api/capabilitiesansweredselfHostBanner: falseon the first request in 0.53 s, and the app showed no banner.