Repository navigation
feat(auth): Your agents lists what's connected; connecting an app or a computer is a flow - #1352
Conversation
|
Review round 1 (GPT 6.1 Sol), addressed in 6ed88e5:
|
|
Review round 2 (GPT 6.1 Sol):
|
7c7b051 to
a3b8071
Compare
c3b279e to
99596b4
Compare
a3b8071 to
8a6e938
Compare
8a6e938 to
425ffb7
Compare
99596b4 to
374bbbb
Compare
Acceptance: PASS with notesChecked Round 2 scope: Done means
Golden journeys
Rollback answers: match the diff: read-only listings and presentation/copy, no migration or incompatible durable state or wire change; no Not run / notes
|
|
Yeah interface looks a lot nicer lgtm |
374bbbb to
4cad9e8
Compare
…a computer is a flow Co-Authored-By: Claude Opus 5.5 <[email protected]>
425ffb7 to
4b126ba
Compare
) Stacked on #1352; part of #1315. Merge the stack together, not alone. ## What changed Integrations was a page of its own: a table with a wall-of-text attention note, and each connection a stack of up to nine equal buttons beside its facts, with a fourth meaning for "disconnect". Now Integrations is an Index page and a connection is a Detail page like a patch's, on core's templates, and every action has one word. | UI word | What it does (wire unchanged) | |---|---| | **Pause** / **Resume** | today's Disconnect / Reconnect: credentials kept | | **Disconnect** | today's Delete: forgets the credentials; refused while a stored version declares it, naming which patch ("Used by timesheets. Remove it from that patch before disconnecting.") | | **Replace key…** (credentials, password) | today's Rotate | | Change project / Point elsewhere / Change access | unchanged, in ⋯ and Settings | Closes #1328 ## Look at **The index.** Mark, `kind/handle`, a quiet Connected dot or a Paused / Needs attention badge, Used by, Last call and ⋯ (Test, Replace key…, Settings, Pause… or Resume). From nine connections: All · Needs attention · Paused · Unused (admins), then each integration the connections come from, and search, all links that keep each other. The attention note is gone; the badge and view carry it.  <details><summary>Before</summary>  </details> **Needs attention is an integration's own reason, with its fix; Paused is an admin's stop.** Attio's writable key, IMAP's refused login (its login pause, no longer called Paused, and shown beside an admin's Pause when both hold), Pidgeon's leftover key and a Pidgeon test address each fill the page's one notice slot with their own words and buttons. The header holds Test and ⋯; tabs are Overview · Calls · Settings for admins.    <details><summary>Before</summary>   </details> **Settings and Calls.** Settings holds the description (its own Save), the credential read as **Stored** (with the real hint PostHog and Attio already keep, the role or username for Postgres and IMAP; nothing invented), where it points, what it may do, the guests switch, and last the danger zone. Disconnect, while anything declares the connection, names every patch with a declaring version (live users, then retired, deleted or older ones) instead of offering a button. Replace, Change, Pause and Disconnect are dialogs over Settings at their old addresses; the first typed field (or Cancel, in a destructive one) takes focus, a refused field or a refusal not about any field the form shows takes it instead, and a failed Pause or Disconnect draws its dialog again. Change access starts at the current access and Change project in its current region. A completed action's receipt sits beside whatever still holds, so a Pidgeon replacement that couldn't revoke the old key says so and keeps the warning. Calls is admins only; its direct URL refuses members inside the app. It keeps every column on a phone, scrolling in its wrapper, and each call opens to its ids, credential and query.      <details><summary>Before: the old overview and pause page</summary>   </details> **One catalogue component.** Mark, name, a line of at most eight words, Connect, then "Something else · Ask" (still the mailto it was; #1227's requests page isn't on main). The same rows at the same 640px width on the catalogue page and on an empty Integrations page; members read them without Connect.  **Members** read the same list with "Only admins connect integrations. Admins: …" and Ask, without Last call, menus or Unused.  <details><summary>Before</summary>  </details> **Phones** (index, a connection needing attention, Settings, Calls scrolling):  <details><summary>Before</summary>  </details> ## How it was verified - `pnpm check` (format, lint, typecheck, synth, offline tests) passes; `packages/integrations` tests rewritten for the new pages: view tests for the index, catalogue, each tab per role, the notice slot, Settings, `declaredBy` and the dialogs; route tests for every action and its reverse, member and foreign refusals (403/404 in the app frame), the Calls tab, and each provider's states. - `pnpm dev up dense`, captured as Allison (admin) and Priya (member) at 1280 and 390 px: all 14 connections across five integrations, connected, paused and each needs-attention reason. - Not run locally: `pnpm verify` and the browser suites (CI runs them). Pressing Test, Resume or Replace on the dense scenario's offline connections reaches the real provider and is refused for invented keys, so refusal states are shown through tests. §10 states kept: every provider operation has a home (Test in the header; Refresh, Replace, Change project/access, Copy name and Pause/Resume in ⋯; the same in Settings plus guests, Pause/Resume and Disconnect); Attio writable key, IMAP login pause, Pidgeon leftover key and test mode as distinct reasons; Attio's long object and list groups fold their rest behind a disclosure; field refusals under their field (the description), others as the notice; Disconnect's in-use guard and stale-link refusal (409, naming what declares it); member refusals and another company's connection read as missing, inside the app (§10 item 10); one notice per page; no "Healthy"; Calls keeps Running and Unknown. Repeat submission: every POST here is idempotent by state (Test, Refresh, Pause, Resume, guests, description) or refused on repeat (Disconnect on a gone connection is 404; Pidgeon's Replace/Change access keep their attempt key). Vocabulary followed through to the integrations glossary (Pause/Resume, Disconnect, Replace key, Needs attention, login pause), `docs/product.md`, ADR-0004's hint wording, the patchy README, the global and project skills (`skills-lock.json` refreshed), human error strings (paused connection, in-use refusal, dev reads, the IMAP pause) and the CLI's `list connections` lines. Wire stays: `status: disconnected`, `reason: not_connected`, `paused: true`, every route and form field. **Core additions** (new files only): `expandingTable` (`ui/expanding-table.ts`, with its test), core's table with a disclosure row under each row, which core's `table` can't hold, and its `wide` variant (`styles/wide-tables.ts`, registered in the chunk list), which keeps a log's columns whole and scrolls on a phone. The page uses core's `page-settings` width class inside Detail's main for Settings, and `page-flow` around the catalogue, so cards keep the prototype's widths under a full-width header; no template has that slot. The pages draw marks with `productMark` (`ui/product-mark.ts`), which #1352 added byte for byte the same, so this PR adds no copy of it. `/~ui` doesn't show `productMark` or `expandingTable` yet: the gallery is core's file, so it's left to the core owner. Left out on purpose: the prototype's Outcome/From chips and Refresh on Calls. Calls has never filtered, and it lists only the latest 10; filtering is new behaviour, not a restyle, so it waits until someone needs it. Left for P7 (#1329): the connect pages themselves still use the old walkthrough frame and its page CSS. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Pages and copy only: every route, form field and API shape is unchanged; old connection URLs still redirect here, and the dialogs answer at the confirmation pages' old addresses. Human CLI and API hint strings changed wording, which agents are told not to parse. - **What does a revert leave behind?** Nothing: no schema, rows or stored state change. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.  Co-authored-by: Claude Opus 5.5 <[email protected]>
…d once (#1376) ## What changed This adds release 41's What's new entry, written from `a25a9c5`. It covers everything merged since release 40's `through` (`08e1fd9`), and sets the `patchy` release to `0.41.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. It ships the UI overhaul together with #1204, the terms prompt, as one release, at Allison's word. | Change | PRs | | --- | --- | | Improved: Patchy has a new look | #1332, #1336, #1338, #1343, #1353, #1354, #1369, #1372 | | New: Accept updated terms once | #1204 | | Improved: Settings holds People, Integrations and Agent access | #1334, #1341 | | Improved: Home starts with what needs you | #1344, #1353 | | New: A blue dot marks patches you haven't opened | #1370 | | Improved: A patch's page has one header and tabs | #1345 | | Improved: Search lands on All patches | #1346, #1353 | | Improved: Inviting and deactivating people is clearer | #1349 | | Improved: Your agents shows what's connected | #1352 | | Improved: Integrations use plain words | #1347, #1351 | | Improved: Agents and integrations show their own logos | #1371 | | Improved: What's new goes by month | #1350 | | Fixed: ⌘⇧K works on your company's public patches | #1339 | | Fixed: Saving works after a patch stops being public | #1339, #1375 | | Behind the scenes: every page built from one set of parts, with a check | #1338, #1354 | | Behind the scenes: agents know a once-public page's refusals mean reload, and retries wait and stop | #1374 | | Patch changes: a kept public page reloads into the company page; check retries wait and stop | #1375, #1374 | #1337 is release 40's own entry. #1340 (routes split, plus the call summary Home and All patches show) and #1342 (the `dense` dev scenario) need no line of their own: the call summary is part of the Home and All patches changes, and the scenario is tooling. The overhaul makes no patch changes. Running patches keep their own styles, which #1332 pins, and the only SDK change is the wording of two error messages' admin addresses. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `d3d32da` (release 40) to this PR's merge:** - **#1334 is `one-way`.** Your agents and Settings moved to `/agents` and `/settings/…`. Old addresses redirect forward, but release 40 serves none of the new ones. This release's CLI hints, the `patchy` skill on `main`, and the API, MCP and publish hints all name the new addresses, so on release 40 they'd answer 404. - **#1372 needs the private font bucket**, and that's done. Its deploy step fetches the pinned Cabinet Grotesk file and checks it before recording anything. The bucket was created on 2026-11-10 and holds the pinned bytes. A rollback to a commit from before #1372 pins no font and builds as before. - **#1204** adds migration `0036_terms_acceptances`, an additive table that release 40 never reads. Release 40 doesn't prompt, and coming forward again asks only people who hadn't accepted. Not `one-way`. - **#1375** changes only the public shell's script, and #1374 is skill text. Release 40 renders its own shell and serves its own skills. - **#1370 and #1339** add rows to the existing `patch_opens` table (a guest's opens, and members' opens of public patches). Release 40 reads them like any other open. - **Everything else** is pages, styles, copy and docs: no migrations, and no API, `--json` or configuration changes. - **patchy-web #53**, the website line #1371's logos needed, is merged (771e6d9). **Rollback line:** Rolling back past #1334 would break every `/agents` and `/settings/…` link that this release's CLI, skill and hints hand out, because release 40 answers them with 404. Fix forward instead. ## How it was verified - **Tests:** the `packages/core` What's new test passes (5), the `packages/api` suites pass (64), and the three files are formatted. - **The range.** Each of the 22 overhaul PRs was: - reviewed by GPT 6.1 Sol at xhigh, with every finding fixed or declined in writing on the PR; - accepted on its final head by an agent that didn't write it; - merged green, by a merge train that rebuilt each PR's accepted tree on main's tip and checked that main's tree matched it after every merge. - **#1339, #1375, #1374 and #1204** were each Sol-reviewed and accepted, and merged on their own: #1339 before the train, the other three after it. #1204's acceptance was rerun on the new sign-in pages. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The changelog entry and the release version only. - **What does a revert leave behind?** Nothing. CLIs installed from this release report `0.41.0` and are told to match the server, as at every release. - **Does the release before it still work with that?** Yes. Changes made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>

Stacked on #1350; part of #1315. Merge the stack together, not alone.
What changed
Your agents put setup first: five apps' instructions in tabs on its own page, a red Revoke button on every computer, and nothing that said whether agent access was even on. Now it leads with what's connected, on the shared templates, and connecting something is a flow one click away.
/agents, Settings template): the header says whether agent access is on at the company (admins get Change, or Turn it on; members read who can). Use patches lists apps, Build patches lists computers, each row with its mark, name, when it was last used, and a status only when there is one: Expires soon in its last week, or Access ended for one that ended on its own in the last 30 days, with Reconnect in its ⋯. A live row's ⋯ holds Disconnect…, a dialog at the row's own…/disconnectnaming what stops. Disconnect everything sits in a danger card and opens a dialog with today's counts./agents/connect?app=…, Flow): 1 Choose your app (Claude, ChatGPT, Claude Code, Codex, Cursor, Another agent, each a link), 2 that app's own step with the MCP address or command to copy, 3 Say yes in your browser, then Once connected (what it can and can't do) and Done./agents/computer, Flow): 1 Give your agent this line (today's setup line), 2 Confirm it's you, Once connected. No agent yet? opens Get an agent over it at/agents/computer/no-agent: Claude Code, Codex and Cursor with Get it links.patchyskill (lock hash refreshed), the README, ADR-0004, the auth glossary anddocs/product.md. Machine tokens and agent connections stay distinct records and authorities; wire names (revoked,/api/logout) don't change.Closes #1327
Look at
1. Access ended needs data the page didn't have. The ticket asks for an Access ended status, but
MachineTokens.listandAgentConnections.listreturn only live records. Each service gains anended(userId)listing: records that ended on their own (unused for 30 days, or a computer's 90 days) within the last 30 days. One the person disconnected, or ended by Disconnect everything or deactivation, isn't listed, and only the newest record of a name (for an app, of its client and name) can be, whatever became of it: a reconnect leaves no stale twin, an older install still working doesn't hide a newer one that ended, and disconnecting a replacement doesn't bring the old one back. Its boundary is exactly whereliststops listing (a test pins the edge). Dense's Allison shows both: ChatGPT unused 35 days and her old ThinkPad unused 40 days.2. Cursor gets a choice that says it can't connect. The ticket lists Cursor as an app, but Cursor still needs dynamic client registration, which Patchy doesn't offer (
docs/product.md). Rather than steps that would fail, its choice says "Cursor can't connect yet", with no Once connected list. Another agent keeps today's "Some agents, such as Cursor and Gemini CLI, can't connect yet."3. Divergences from the prototype, on purpose.
How it was verified
pnpm check: format, lint, typecheck and synth pass. The offline tests pass for every package this touches when run on their own (packages/auth,packages/core,packages/portal,apps/serverMoved, McpDoor, Session and SweepSchedules,packages/patchy/src/cli.test.ts). The full run had 29 unrelated files time out or hit stray requests on this shared machine (CLI stub tests, execution fleet, integrations), none of them touching these pages; they pass alone, and CI is the judge.MachinesPage.test.tscovers: records first with both empty states and the legacy anchors; each app's steps, Cursor's refusal, an unknown?app=falling back to Claude, no inline script; Add a computer and Get an agent; agent access off for a member and an admin; apps and computers with Expires soon, Access ended and Reconnect, the per-row dialogs, foreign and missing ids answering the same 404 inside the app, receipts and the stale repeat; Disconnect everything's counts and hidden account field, and an answer from another account (409) drawing the dialog again for the account signed in now, saying nothing was disconnected; a store failure as a 503 in the app frame.MachineTokens.test.tsandAgentConnections.test.tspin the newendedlistings: the window's edges, revoked and long-gone records, a newer namesake (live, or disconnected) hiding an older one, and an older live namesake not hiding a newer ended one.pnpm dev up dense: a row's ⋯ → Disconnect… opens the dialog with focus on Cancel; Escape goes back to/agentswith focus on the row's menu button; Disconnect everything and Get an agent open and close the same way;/machines#add-a-computerlands on Add a computer's link and/machines?agent=codex#connect-an-agenton Codex's steps with Codex chosen; with script off the dialog is its own page, Disconnect posts, the receipt names the computer and its row is gone.test/browser/patchy-login.spec.ts) now disconnects through the menu and dialog, answering the dialog once Clerk has loaded on its page and asserting the POST answers 303 to Your agents, then the receipt, the row gone and the CLI refused; it passes in CI's clerk-live job.§10 states kept
Core additions
All new files except two optional ids:
ui/product-mark.ts:productMark, byte-identical to P6's file of the same name so the stack dedupes it.ui/choice-links.ts+styles/flow-parts.ts:choiceLinks, a flow's choices as tiles that are links (current one marked).ui/flow-outcome.ts:flowOutcome, a flow's Once connected section on the flow's own gap (asectionthere would add its between-sections margin to the flow's gap).ui/computer-mark.ts:computerMark, the prototype's laptop on theagent-marksquare.canListof its own: Once connected uses P8's fromui/door.ts(same signature); this PR's copy was deleted when it was restacked on feat(portal): What's new by month #1350.linkButton(…, { id })andFlowSection.id: optional, so the anchors released skills and CLIs link to (#add-a-computer,#connect-an-agent) stay on the link and the steps they name. Nothing that doesn't pass one changes.canList) and the product and computer marks, and focused tests inui/flow-parts.test.ts.Release impact
Pages, a CLI human string and two read-only service listings. No schema, wire or
--jsonchange; every route and POST that existed keeps working, and old/machinesaddresses still redirect throughMoved.ts.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.
Before and after, as Allison Mahmood (admin)
Before is
4593013(where this branch left ui/s-scenario) and after is6ed88e5(ui/p4-agents), both on thedensescenario, frompnpm dev compare./agents1280px, after
1280px, before
/agents/connect?app=claude1280px, after
1280px, before
/agents/computer1280px, after
1280px, before
/agents/computer/no-agent1280px, after
1280px, before
Failed to load resource: the server responded with a status of 404 (Not Found).Failed to load resource: the server responded with a status of 404 (Not Found)./agents/disconnect-all1280px, after
1280px, before
/agents/computers/tok_env_brightline_allison_0/disconnect1280px, after
1280px, before
Failed to load resource: the server responded with a status of 404 (Not Found).Failed to load resource: the server responded with a status of 404 (Not Found).