Skip to content

feat(auth): Your agents lists what's connected; connecting an app or a computer is a flow - #1352

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/p4-agents
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/p4-agents

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

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.

  • Your agents (/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 …/disconnect naming what stops. Disconnect everything sits in a danger card and opens a dialog with today's counts.
  • Connect an app (/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.
  • Add a computer (/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.
  • A missing or someone else's computer or app, a stale Disconnect everything, and a store that can't answer now render inside the app (the viewer's own list with a notice, or a 503 notice), not as a door.
  • "Computer" and "app" are the nouns people read; Disconnect replaces Revoke wherever a person reads it: the page, receipts ("Disconnected Studio Mac mini"), the CLI's logout warning, the patchy skill (lock hash refreshed), the README, ADR-0004, the auth glossary and docs/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.list and AgentConnections.list return only live records. Each service gains an ended(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 where list stops 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.

  • Disconnect everything stays when nothing is listed (the prototype hides it for Priya): it also cancels an approval not yet collected, which today's page and test keep.
  • Add a computer numbers its two steps as Flow sections, like Connect an app, rather than the setup stepper with step 1 lit: nothing on this page follows the agent, so no step is marked current. Both flows end with Done; the prototype's "This page doesn't need to stay open." is cut as helper text.
  • Once connected says "Every change it makes is logged under your name, via Claude", not the prototype's "Every call": successful quiet reads aren't logged, and consent already promises changes.
  • Claude's step says "Add a custom connector named Patchy with this address" without the Settings › Connectors path, as the prototype's note asks (menu paths go stale). ChatGPT keeps its plan caveat.
  • Ended rows put Reconnect in their ⋯ rather than a button beside the badge: on a phone a badge plus a button squeezed the name to a word a line.
  • App marks are ink letters on the white product square at its one size, in lists and in the app choices: the prototype's vendor-coloured letters and smaller choice marks aren't in the token set, and core's marks draw other products as ink on white.
  • The row menu holds only Disconnect…: the prototype's "See its calls" has no page to go to yet.
  • The rows drop today's "If you reconnected Claude since, this is the old one…" sentence; a week-unused app's line says when it expires instead, and its menu and dialog name the day it connected.

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/server Moved, 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.ts covers: 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.ts and AgentConnections.test.ts pin the new ended listings: 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.
  • In Chromium against pnpm dev up dense: a row's ⋯ → Disconnect… opens the dialog with focus on Cancel; Escape goes back to /agents with focus on the row's menu button; Disconnect everything and Get an agent open and close the same way; /machines#add-a-computer lands on Add a computer's link and /machines?agent=codex#connect-an-agent on 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.
  • The live-Clerk login test (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

  • Who sees what (3): every person sees only their own records; members see agent access as text with the admins' names; admins get Change / Turn it on.
  • URLs (2) and overlays (15): each app's steps, both flows, both per-row Disconnect dialogs, Disconnect everything and Get an agent have URLs, work without script, and close back to their page; destructive dialogs focus Cancel; menus are native popovers of links.
  • Errors (10): a foreign or missing id answers the same in-frame refusal over the viewer's own list; a stale Disconnect everything answer (409) draws the dialog again for the account signed in now, with "Nothing was disconnected" in it and focus on Cancel, as a refused dialog does; a store failure is an in-frame 503; a lost session still goes through sign-in.
  • Vocabulary (§7, decision 4): computer, app, Disconnect.
  • Repeat submission (21): every POST here is idempotent by state: disconnecting a disconnected computer or app ends nothing new (a computer's repeat gets no receipt), and Disconnect everything only moves the person's ended-at stamp forward. No dedupe needed.

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 (a section there would add its between-sections margin to the flow's gap).
  • ui/computer-mark.ts: computerMark, the prototype's laptop on the agent-mark square.
  • No canList of its own: Once connected uses P8's from ui/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 }) and FlowSection.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.
  • A gallery block for choice links, the flow's outcome (holding P8's canList) and the product and computer marks, and focused tests in ui/flow-parts.test.ts.

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Pages, a CLI human string and two read-only service listings. No schema, wire or --json change; every route and POST that existed keeps working, and old /machines addresses still redirect through Moved.ts.

  • What does a revert leave behind? Nothing: no migration, no new rows, no new contract.
  • Does the release before it still work with that? Yes.

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 is 6ed88e5 (ui/p4-agents), both on the dense scenario, from pnpm dev compare.

/agents

1280px, after

After: /agents at 1280px

1280px, before

Before: /agents at 1280px

Width Before After
390px Before: /agents at 390px After: /agents at 390px
/agents/connect?app=claude

1280px, after

After: /agents/connect?app=claude at 1280px

1280px, before

Before: /agents/connect?app=claude at 1280px

Width Before After
390px Before: /agents/connect?app=claude at 390px After: /agents/connect?app=claude at 390px
/agents/computer

1280px, after

After: /agents/computer at 1280px

1280px, before

Before: /agents/computer at 1280px

Width Before After
390px Before: /agents/computer at 390px After: /agents/computer at 390px
/agents/computer/no-agent

1280px, after

After: /agents/computer/no-agent at 1280px

1280px, before

Before: /agents/computer/no-agent at 1280px

Width Before After
390px Before: /agents/computer/no-agent at 390px After: /agents/computer/no-agent at 390px
  • Before at 1280px answered 404; 1 browser error(s): Failed to load resource: the server responded with a status of 404 (Not Found).
  • Before at 390px answered 404; 1 browser error(s): Failed to load resource: the server responded with a status of 404 (Not Found).
/agents/disconnect-all

1280px, after

After: /agents/disconnect-all at 1280px

1280px, before

Before: /agents/disconnect-all at 1280px

Width Before After
390px Before: /agents/disconnect-all at 390px After: /agents/disconnect-all at 390px
/agents/computers/tok_env_brightline_allison_0/disconnect

1280px, after

After: /agents/computers/tok_env_brightline_allison_0/disconnect at 1280px

1280px, before

Before: /agents/computers/tok_env_brightline_allison_0/disconnect at 1280px

Width Before After
390px Before: /agents/computers/tok_env_brightline_allison_0/disconnect at 390px After: /agents/computers/tok_env_brightline_allison_0/disconnect at 390px
  • Before at 1280px answered 404; 1 browser error(s): Failed to load resource: the server responded with a status of 404 (Not Found).
  • Before at 390px answered 404; 1 browser error(s): Failed to load resource: the server responded with a status of 404 (Not Found).

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes labels Nov 8, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 1 (GPT 6.1 Sol), addressed in 6ed88e5:

  1. Fixed: Access ended hid the wrong records. An ended record is now hidden only behind a newer record of the same name (for an app, same client and name), whatever became of it. An older install still working no longer hides a newer one that ended, and disconnecting a replacement doesn't bring the old one back. Both services' tests cover both cases.
  2. Fixed: "Every call is logged". Once connected now says "Every change it makes is logged under your name, via …", as consent does; quiet reads aren't logged.
  3. Not fixed here, left for the core owner: long unbroken names overflow dialogs. Confirmed at 390px: a 64-character name with no break opportunity pushes the dialog's Close off-screen and the body scrolls sideways (names with hyphens or spaces wrap fine). The cause is core's shared dialog CSS (.dialog-head > h2 has no min-width: 0 or overflow-wrap, and .dialog-body doesn't wrap), so it reaches every dialog that names something a person typed, such as a patch's Delete. Lanes don't change existing core behaviour, and page CSS is the wrong fix, so I've reported it to the integrator with the two declarations that fix it: .dialog-head > h2 { min-width: 0; overflow-wrap: anywhere; } and .dialog-body { overflow-wrap: anywhere; }.
  4. Fixed: the flow rule changed every flow. .flow > .section is gone; Once connected uses a new flowOutcome helper whose own class sits on the flow's gap.
  5. Fixed: the stale-account refusal had no focus target. An answer from another account now draws the Disconnect everything dialog again for the account signed in now, with "Nothing was disconnected" inside it and focus on Cancel, the refused-dialog pattern the enhancer already supports.
  6. Fixed: evidence. The before/after section from pnpm dev compare is in the body, re-run on the new head.
  7. Fixed: computer mark. Computers wear the prototype's laptop (computerMark, a new core file).

@allisonmahmood

allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner Author

Review round 2 (GPT 6.1 Sol):

  1. Live login journey red on 6ed88e5. The old Revoke sat on a page the test reached with page.goto, so Clerk's session script had settled before the press; the Disconnect dialog is reached by a link and the test answered it at once, before the dialog page's Clerk load finished. 51530c3 and 7c7b051 wait for Clerk to have loaded on the dialog page (through an evaluated function: a string predicate is eval'd, which the page's CSP refuses) and assert the POST itself answers 303 to /agents, keeping the receipt, row-gone and CLI-refused checks. clerk-live passes on 7c7b051. I couldn't reproduce Clerk locally (the live harness's instance build overruns its setup time here), so the cause is inferred, not shown: the likeliest is a Clerk handshake redirect landing on the POST while Clerk was still loading, which would turn it into a GET of the dialog. If so, it applies to any first-party form pressed that fast in Clerk mode, not something this page adds.
  2. Long unbroken names in dialogs: agreed it stays open, owned by core: reported to the integrator with the two declarations and a 390px reproduction; it needs fixing before the stack ships.
  3. Dismissed: "local hostnames" in the evidence. The origin in the screenshots (after-06nomf.localhost:25390) is pnpm dev compare's throwaway evidence instance: a random label under .localhost, which resolves only on the viewer's own machine and names no workstation, network or person. It is what the MCP address and setup line show on any local instance, and every compare section carries one. Nothing to redact.
  4. Fixed: app marks. The PR body now explains that app marks are ink letters on core's one product-mark square, in lists and choices, since the prototype's vendor colours and smaller choice marks aren't in the token set.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 425ffb79638dad7996f8763ee3bdc90a9a4bffd0 (base 374bbbb890197778adb998c3b606fc481ad59946) on fresh dense data, by GPT-6.1 Sol in the Codex harness (T3 Code).

Round 2 scope: git range-diff 99596b42..8a6e938f 374bbbb8..425ffb79 reports all four commits =. This is a rebase only. Carrying forward round 1's FAIL verdict on 8a6e938fe47d2630d1323fda0731437eeb29e8c9 (comment 6720297303) for its unchanged device-login/logout, no-script disconnect, ownership/error, redirect and OAuth evidence. Its sole blocking phone-dialog failure is fixed below this PR in #1338 and was reproduced with the original steps here.

Done means

  • App setup, Add a computer, records/status and disconnect: passed. Rechecked all six app choices, computer flow, Get an agent and Disconnect everything as admin/member at 1280px and 390px with script on/off: 80 page checks, expected 200s, no page errors or document overflow. Cursor retains its explicit limitation.
  • Long computer Disconnect: passed. Started device login with 64 A characters, confirmed the name in the browser, collected the credential, and verified its identity endpoint answered 200. Opened the new row's Disconnect at 390px: title and consequence wrap, dialog/body scroll widths equal their client widths (386px), document width 390px, Close's right edge 368px. Initial focus is Cancel; Escape returns focus to the row menu. Disconnect gives the named receipt and the collected credential then answers 401.
  • Error/status/ended-record behavior: passed in 36 focused tests across MachinesPage, MachineTokens, AgentConnections and flow-parts.

Golden journeys

  • Log a machine in and reverse by browser Disconnect: passed on this head, as above. Round 1's unchanged logout/device-confirmation/OAuth checks carry forward by the identical range-diff; third-party client setup remains untested.

Rollback answers: match the diff: read-only listings and presentation/copy, no migration or incompatible durable state or wire change; no one-way label needed.

Not run / notes

  • Real third-party app setup, live Clerk and the complete local verification matrix were not rerun. Round 1's evidence remains applicable to unchanged code; this is not live-provider evidence.
  • CI at posting: provider change checks and label pass; main suites/server image remain queued or pending. The old installer entry is cancelled, with no executed steps, not an assertion failure. Pending checks are not counted as passed.
  • The inherited phone-dialog blocker is resolved. Instance taken down; checkout clean; no PR code, branch, body or labels changed.

long-computer-390

@vsrikar08

Copy link
Copy Markdown
Collaborator

Yeah interface looks a lot nicer lgtm

Base automatically changed from ui/p9-whats-new to main November 10, 2026 19:07
@allisonmahmood
allisonmahmood merged commit 540c327 into main Nov 10, 2026
26 checks passed
@allisonmahmood
allisonmahmood deleted the ui/p4-agents branch November 10, 2026 19:20
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
)

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.

![Integrations,
after](https://github.com/user-attachments/assets/168f6502-4385-4c8b-9e9a-2aa237a8f27c)

<details><summary>Before</summary>

![Integrations,
before](https://github.com/user-attachments/assets/375304e3-712f-4274-be9e-0f19ae3b565d)
</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.

![attio/partners,
after](https://github.com/user-attachments/assets/44ac9259-48da-4b67-9866-8119f7589c00)
![imap/applications,
after](https://github.com/user-attachments/assets/c1166a45-7621-4eb3-b976-5695fcb4da89)
![pidgeon/sandbox, a test
address](https://github.com/user-attachments/assets/ebdbe7eb-b0cf-49b5-a71e-1afaaa2e5714)

<details><summary>Before</summary>

![attio/partners,
before](https://github.com/user-attachments/assets/be9b0c59-5561-4f1a-a190-eb5c554eb561)
![imap/applications,
before](https://github.com/user-attachments/assets/2cb9112a-dc0e-43a1-9814-b929856e6e76)
</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.

![Settings,
after](https://github.com/user-attachments/assets/e9e468c4-8848-4531-9178-033d5173e5a1)
![Calls,
after](https://github.com/user-attachments/assets/1a79a809-778f-44c4-9776-2f2d98006dde)
![Pause dialog,
after](https://github.com/user-attachments/assets/5404618f-8e1f-4d82-b961-dd29e513305e)
![Disconnect refused for a used
connection](https://github.com/user-attachments/assets/8ad2b69b-723b-45e8-a607-244bf557433a)
![Change access
dialog](https://github.com/user-attachments/assets/3a950c44-05ab-4d08-95ad-d60fbc13c435)

<details><summary>Before: the old overview and pause page</summary>

![attio/crm,
before](https://github.com/user-attachments/assets/d201d516-1992-4340-b4a1-90f721a49b48)
![Pause page,
before](https://github.com/user-attachments/assets/5e967bc2-f4e6-49e9-9f73-27b2352e52d1)
</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.

![Connect an
integration](https://github.com/user-attachments/assets/170b6d6f-6e13-4f55-9065-d8040401ecb4)

**Members** read the same list with "Only admins connect integrations.
Admins: …" and Ask, without Last call, menus or Unused.

![Integrations as a member,
after](https://github.com/user-attachments/assets/e014540d-20e0-454d-bfde-c68c50e61c12)

<details><summary>Before</summary>

![Integrations as a member,
before](https://github.com/user-attachments/assets/6820a0b6-93f3-49dd-93e1-2d6e407aecf2)
</details>

**Phones** (index, a connection needing attention, Settings, Calls
scrolling):

![Phones,
after](https://github.com/user-attachments/assets/228336c2-4996-4e0d-a6aa-744291799e37)

<details><summary>Before</summary>

![Phones,
before](https://github.com/user-attachments/assets/3520e95e-202f-4912-b4a9-6c520b6fc7dd)
</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.


![p6-overview-after](https://github.com/user-attachments/assets/95d1a3ff-1879-4eac-80c6-757d2c48776a)

Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI overhaul P4: Your agents lists what's connected; connecting an app or a computer is a flow

2 participants