Skip to content

Admin apps: an app waiting for someone to connect is not an error - #2145

Merged
davidmckayv merged 1 commit into
mainfrom
fix/admin-apps-sign-in-row
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/admin-apps-sign-in-row

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

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

  • toolsListError now returns { text, error }. In the team edition, a connect or reconnect refusal 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.
  • Admin > Apps colours a row's description red only when it is a real failure.
  • The app's own admin page and its page for one Bot show the same sentence under "No tools listed" / "No actions listed". The app's page also said "Connect your account to see its tools." for a server that signs each person in; the team edition says the new sentence there too.
  • The personal edition keeps its wording everywhere. tools and shared refusals, and any other last error, are shown as before.

Tests

app/tests/admin-apps-sign-in-first.test.tsx draws 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 in personal-app-page-wording.test.tsx that pinned the old sentence now asserts the new one.

@davidmckayv
davidmckayv force-pushed the fix/admin-apps-sign-in-row branch 8 times, most recently from db61268 to 51e8024 Compare November 24, 2026 22:23
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
davidmckayv force-pushed the fix/admin-apps-sign-in-row branch from 51e8024 to 02dd8c4 Compare November 24, 2026 22:54
@davidmckayv
davidmckayv merged commit f042bbf into main Nov 24, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the fix/admin-apps-sign-in-row branch November 24, 2026 23:26
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