Skip to content

feat(platform): add the Connected agents page to Settings - #4925

Merged
yannickmonney merged 1 commit into
mainfrom
feat/agent-connected-agents
Oct 13, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
feat/agent-connected-agents

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

Settings › API › Connected agents (O‑S5c of the coding-agent sign-in program): the page where a person sees the coding agents they connected to the organization and disconnects one.

  • The list: each agent with its app name and where it is from (the domain it proved, or Unverified for an app that chose its own name), the access it was given in the words of the consent page (level + extras), when it connected and when it last called (Never before the first). An owner or admin can switch Mine | Everyone (adds who connected each, from their account) and Show disconnected (each says Disconnected {date} · {reason}, wrapping instead of cutting the reason).
  • Disconnect asks first, in words that fit whose agent it is (own / an admin's, naming the person), says the agent loses access at once; a refusal keeps the dialog open and says why. The list, and what the person has to do with agents, refresh.
  • Who opens it: the page exists once the deployment lets coding agents sign in (TALE_MCP_* switches, still off by default), for whoever may connect an agent in this organization (owner/admin/developer, or a member with a key-using competence), and — whatever the switch says — for a member who still holds a live connection, so they can see and end it. GET /api/app/agent-connections/access answers mayConnect, holdsConnection, signInOn; the rail, the mobile overview and the API layout read it through useApiSettingsAccess (agents, connectAgents). Nothing offers a way to connect while agents may not sign in.
  • Columns by width: the agent and its menu always; the person (everyone's view) from sm, access and last call from md, the day it connected from xl. A table's declared sizes set its minimum width even for CSS-hidden columns, so hiding left the disconnect menu ~800 px off to the right on a phone; the columns a screen has no room for are left out instead, and the table never scrolls sideways (tested at 320/390/640/768/1024/1280 px in en/de/fr).
  • The disconnect notice now opens this page; the list names the person (personName, personEmail); EXTRA_SCOPES moved to lib/shared/agent-access.ts so the consent page and the list share one vocabulary.
  • Rules AGCONN-R23 (who opens the page) and AGCONN-R24 (what it lists and how it disconnects); SET-F85–SET-F88, SET-B38, SET-A11 in the settings manual suite; a coverage row in reference/automation.md; the page is not exposed over MCP settings on purpose (an agent that could disconnect agents could cut off the people supervising it).

Proof

  • Gate on the committed tree (pinned bun 1.4.2): format, conflict markers, links, manual (1787 boxes), knip, oxlint type-aware, tsc (platform + shared); @tale/shared 958; platform server+pii 88,949 (19 skipped); platform UI 7,898; real-Chromium browser files for the page and the consent page 35; docs 713.
  • Real Postgres: checkAgentConnections 89/89 — the list names each person from their account, readAgentConnectionAccess for owner/developer/member-with-a-connection/plain member, and the route over HTTP.
  • Mutation round: 27 mutants of the access rule, the list SQL, the route, the nav audience, the cells, the dialog, the section, the query keys, the invalidation, the column gating and the notice's destination — all killed (two survivors on the first round led to a role-flip test and showed the notice was held by the parity test in the UI project).
  • Live, on a real stack (backend + vite, own database): owner, developer, member with an agent and a plain member; Mine/Everyone/Show disconnected; admin and own wording of the dialog; the disconnect (toast, row turns into Disconnected … by an Admin, the person's bell notice); a second session ending an agent updates the open page without a reload (row → empty state, bell 1 → 2); a plain member sees no row and gets the denial by URL; with agent sign-in off a developer holding nothing has no Connected agents and with it on the page and its empty state appear; phone (390), laptop beside the rail (1024) and desktop (1280).
  • Found on the way and fixed: a disconnected row's reason was cut by the column's ellipsis, and the access badges cut their words (Badge always truncates; the page uses badgeVariants on a wrapping span).

Not here

  • Docs (EN/DE/FR admin page) and flipping the two sign-in switches are the last slice (O‑S6); until then the page stays dark.
  • Connect a coding agent leads to the MCP page; the guided setup dialog is a later part. A member who may connect an agent has no button (that page is not open to them).
  • Like every table in Settings, the page's table relies on DataTable's floor counting CSS-hidden columns; this page avoids it by leaving columns out. Fixing the table itself is a design-system change for its own PR.

Settings > API > Connected agents lists the coding agents a person
connected to the organization: the app and the domain it proved (or
"Unverified"), the access it was given in the words of the consent page,
when it connected and when it last called. An owner or admin can switch to
everyone's, with who connected each, and show the disconnected ones with
when and why. Disconnect asks first, in words that fit whose agent it is.

The page exists once the deployment lets coding agents sign in, for whoever
may connect one here, and for a member who still holds a live connection
whatever the switch says. GET /api/app/agent-connections/access answers
those facts; the list names each person from their account. The columns a
screen has no room for are left out of the table rather than hidden, so the
menu that disconnects an agent is in reach on a phone and the table never
scrolls sideways.

A disconnect notice now opens the page. AGCONN-R23 and AGCONN-R24 state the
rules; the settings suite gains boxes for the page, who opens it and its
keyboard use.
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