Repository navigation
Admin apps: an app waiting for someone to connect is not an error - #2145
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 19:12
davidmckayv
force-pushed
the
fix/admin-apps-sign-in-row
branch
8 times, most recently
from
November 24, 2026 22:23
db61268 to
51e8024
Compare
An app whose own server signs each person in lists its tools only as
somebody who has signed in. When an admin adds one, nobody has, so the
refresh records the refusal a Bot would get as the app's last error.
Admin > Apps drew that on the row in red ("You have not connected your
Sanity account. Connect it and ask again."), telling the admin to connect
their own account, which the app never needs from them.
In the team edition, a connect or reconnect refusal now reads "<App>
lists its tools once someone connects their account." in the normal
colour, on the Apps list, on the app's own page and on its page for one
Bot. The app's page said "Connect your <App> account to see its tools."
for a server that signs each person in; the team edition says the same
new sentence there. toolsListError returns the text and whether it is a
failure, so the list colours only real failures red. The personal
edition keeps its wording, and other refusals and failures are shown as
before.
davidmckayv
force-pushed
the
fix/admin-apps-sign-in-row
branch
from
November 24, 2026 22:54
51e8024 to
02dd8c4
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 was wrong
An app whose own MCP server signs each person in (Sanity, Railway, Clay, Fireflies, PostHog, Vercel, or a catalogue app reached as the person asking) lists its tools only as somebody who has signed in. When an admin adds one, nobody has, so the tools refresh records the refusal a Bot would get as the app's
lastError. In the team edition, Admin > Apps drew that refusal on the app's row in red: "You have not connected your Sanity account. Connect it and ask again." That tells the admin to connect their own account, which the app never needs from them. The member who wants the app connects, and its tools are listed then.What changed
toolsListErrornow returns{ text, error }. In the team edition, aconnectorreconnectrefusal reads " lists its tools once someone connects their account." and is not an error. A withdrawn account in the team edition is also one person's own account, so it gets the same sentence.toolsandsharedrefusals, and any other last error, are shown as before.Tests
app/tests/admin-apps-sign-in-first.test.tsxdraws the real team-edition Apps list, app page and Bot page with the refusal exactly as the server writes it (connectAppRefusal). It fails on main (4 of 5 tests: the old red sentence on the row, the old sentence on both pages) and passes with this change. The fifth test pins that a real failure is still shown in red. The team assertion inpersonal-app-page-wording.test.tsxthat pinned the old sentence now asserts the new one.