Skip to content

Connect a coding agent from a guided dialog - #4958

Merged
yannickmonney merged 2 commits into
mainfrom
feat/connect-agent-dialog
Oct 13, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
feat/connect-agent-dialog

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

Connect a coding agent on the Connected agents page led to Settings > API > MCP, a technical page (address, organization slug, tool list) where a person who wanted Claude Code or Codex connected had to go and read the docs. It now opens a dialog that teaches the connection and watches for it.

  • Commands per agent. Tabs for Claude Code, Codex and Other. Claude Code and Codex show the two commands that add Tale and sign in (claude mcp add --transport http tale <address>, claude mcp login tale; codex mcp add tale --url <address>, codex mcp login tale), each in a block with an always-visible copy button (a touch screen has no hover). Any other agent gets the address and the instruction to choose browser sign-in, with the guide for Cursor, opencode and Claude on the web.
  • A status read from the list, not claimed. Waiting for your agent to sign in… until the person's connections gain one that was not there when the dialog opened, then Connected: Claude Code. A connection that existed when the dialog opened never counts, and a list cached from before is not taken for the baseline.
  • A first prompt in the person's language that names only tools the endpoint offers (a test reads every locale's text against the tool inventory), under Then ask your agent; it becomes Try this first once an agent is in. The part to replace is marked, and its hint shows only when there is one.
  • Who gets it. The button opens for whoever may connect an agent here, not only the roles that can open the MCP page: a member whose competence lets them create a key sees the same button.

Decisions

  • Only clients that were run end to end have commands: Claude Code 2.1.296 and the Codex CLI both signed in against a live Tale. Cursor, VS Code, Gemini CLI and the rest wait for the manual client round (test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933) rather than ship a command nobody tried.
  • A command is built from the address alone, so no key or token can reach it, and an address no terminal could take as it is (a quote, a ;, a $, a space, credentials) gets the address and nothing else.
  • The block lives in the platform feature, not @tale/ui: it is domain content (these commands), with no second consumer yet.

Proof

  • New: 51 component, hook and pure tests, plus 18 in real Chromium: no sideways scroll at 320, 390, 768 and 1280 px in English, German and French on every tab, the arrow keys between the agents, the tab order, axe in both themes while waiting and connected. A mutant that drops the freshness rule for the baseline fails its test.
  • Live, against a real provider and a signed-in browser: a second tab registered an agent and completed the consent page; the dialog open on the first tab changed from Waiting for your agent to sign in… to Connected: Aider, and its prompt to Try this first, with no reload, and the list behind it gained the row. Read in light and dark, at 390 px as a bottom sheet.
  • Docs: the first steps of the Connected agents guide describe the dialog (EN/DE/FR), with a capture of it taken through the manifest.
  • Manual layer: SET-F89 (the dialog end to end), SET-A12 (keyboard and screen reader), SET-B38 corrected, the automation reference row.
  • Gate (pinned bun 1.4.2), on the tree before one test-only fix and a rebase onto fix(platform): repair main's Format, Browser and E2E checks #4949: lint:links, lint:manual, lint:conflicts, knip, oxlint (type-aware) and both typechecks clean; shared 974, platform server + pii 89 114, platform UI and docs 716 pass. Its browser step failed once: agent-connections-section.browser.test.tsx mocked the queries module without the export the dialog's hook reads. Fixed by keeping the real exports; that file and the three other related browser files (connect-agent-dialog, agent-consent, auth-page-layout) pass, 59 tests. oxfmt --check is clean on the rebased tree.

Not here

The setup wizard step, the MCP page recomposed around this block, the same block in the automation editor's dialog, and a self-signed certificate notice (it needs a backend read) are separate slices.

The Connect a coding agent button on the Connected agents page led to the
MCP settings page: a technical page with the address, the organization
slug and a list of tools, and a person who wanted Claude Code or Codex
connected had to read the docs. It now opens a dialog that teaches the
connection and watches for it.

The dialog has a tab for Claude Code, Codex and any other agent. Claude
Code and Codex show the two commands that add Tale and sign in, each in a
block with an always-visible copy button; any other agent gets the address
and the instruction to choose browser sign-in. Only the two agents that
were run end to end against a live Tale have commands, and a command is
built from the endpoint's address alone, so no key or token can reach it;
an address no terminal could take as it is gets the address and nothing
else.

A line says Waiting for your agent to sign in until the list of the
person's connections gains one that was not there when the dialog opened,
then names the agent that signed in, from the list itself rather than from
a claim. A prompt in the person's language, naming only tools the endpoint
offers, waits under it and becomes "Try this first" once an agent is in.

The button now opens for whoever may connect an agent here, not only the
roles that can open the MCP page. New strings ship in English, German and
French.
The first steps of Connect an agent sent the reader to Settings > API >
MCP for the address and to another guide for the command. They now start
from the Connect a coding agent button and say what the dialog gives: the
commands for Claude Code and Codex, the address for any other agent, the
line that waits for the agent and then names it, and a first prompt. A
capture of the dialog joins the guide in English, German and French, taken
through the manifest like the others, with the production-shaped host in
place of the rig's address.
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