Repository navigation
feat(portal): send Patchy a request or feedback, and see what you sent - #1227
Conversation
…s, with New patch (#1341) Stacked on #1334; part of #1315. Merge the stack together, not alone. ## What changed The sidebar listed Home, All patches and Your agents, then a "Company" group of People, Integrations and Agent access, and nothing in it started a patch. Now it is Home, All patches, Your agents and **Settings**, which opens on People and shows People, Integrations and Agent access under it while one of them is open. **New patch** sits under the search and opens Home at `/?new` (P1 draws its dialog; until then `/?new` is Home). Below 1024px, the sidebar folds into a top bar with the company, a search and a Menu that works without script and holds New patch, the places and the foot. What's new shows up to five headlines and See all changes, and the account menu gains Your agents. App pages are titled "Heading – Place – Company". Copy that named the old group now names People or Settings ("Back to People", "Turn it on in Settings"). Closes #1321 ## Look at **1. One list for the sidebar and the switcher: `packages/core/src/places.ts`.** Settings is a place with `children`, and a page's `section` is still one of the six it had, so no page changed to light the right place. ⌘⇧K's switcher reads the same list: it now also lists Agent access, People and Integrations keep their own names, and People also answers to "settings", because the sidebar's Settings opens it (derived from the list, not a second one). Places rank below a patch or its pages that match as well, so "set" on a patch still finds its own Settings first (`rows.test.ts`). **2. The phone top bar: one search form, one nav.** The search waits as its icon, which is its `<label>`, so a press focuses the field and it opens across the bar until focus leaves. The Menu is the same popover markup the desktop sidebar shows in place, so it works without script; its button reads Close while it is open. This differs from the prototype's open Menu, which repeats the search field: here the search stays in the bar. Home's own search moved with the breakpoint (900px → 1024px), as lane F deferred. Open Menu (People as admin, Settings open; Your agents as a member; What's new over it), before and after:  <details><summary>Before</summary>  </details> What's new and the account menu on a wide window, after then before:  <details><summary>Before</summary>  </details> <!-- patchy-dev:compare:allison --> #### Before and after, as Allison Mahmood (admin) Before is `7099dff` (--base origin/ui/u-addresses) and after is `7293502` (ui/n-shell), both on the `brightline` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/settings/people` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/patches/new-business` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:allison --> <!-- patchy-dev:compare:priya --> #### Before and after, as Priya Shah (member) Before is `7099dff` (--base origin/ui/u-addresses) and after is `7293502` (ui/n-shell), both on the `brightline` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/settings/integrations` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/agents` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:priya --> ## How it was verified - `pnpm check`: format, lint, typecheck and synth pass. Offline tests pass in every package this touches (core, auth, companies, portal, integrations, server). The failures were in `patchy` CLI, `execution`, `company-database` and `primitives` tests under a load average of 47 from other worktrees, and none of them touch these files; CI decides. - New `test/browser-tier1/shell.spec.ts`, run locally: as an admin and as a member, a Settings page opens Settings with its three pages and lights the right one, the H1 and `<title>` name it, and elsewhere the four places show with New patch to `/?new`. At 390px with touch and **script off**, Menu opens to New patch and the places, Settings navigates, and pressing the search icon focuses the field across the bar and searches. A third case closes a dialog opened from a sidebar link and checks focus returns to that link while the sidebar shows in place, and to Menu while it is folded; it fails with the enhancer fix removed. `ui.spec.ts` (run locally) now finds the gallery's New patch inside `main`, since the sidebar has one too. - `html.test.ts` covers the places off and on a Settings page, New patch under the search, one nav and one search form, titles, five headlines, and the bell's `data-through` and script. Spec §10 states for the frame, kept: - **Who sees what (3):** members get the same map (shell test, both roles). Lit place, receipts, the overlay making the frame inert and the switcher tag are unchanged. - **What's new (18):** the seen marker works as before. The panel keeps `id="whats-new"`, `data-through`, `.whats-new-dot` and `.whats-new-bell`, which `/whats-new/bell.js` reads, and the page still advances the marker. - **Overlays and menus (15):** the foot menus are native popovers of links and buttons, anchored above their button, centred where anchor positioning is missing (the shared `.menu` fallback). - **Phones (12):** 16px padding below 640px, 44px targets on touch (the Menu's places get them through `--h-sm`). **Core changes:** - `ui/icons.ts`: home, grid, bot, gear, bell, menu, chevronRight, chevronUpDown, logout. These are additions. - `places.ts`: the list's new shape, with `Place` and `pagePlaces`. - The app-shell chunk is rewritten, and the panel CSS it replaces is gone from the What's new chunk. - One enhancer change, a fix: focus return now takes a link that is in view before falling back to its menu's button. Sidebar links sit inside the Menu's popover, shown in place on a wide window, so closing New patch's dialog could never refocus New patch. `shell.spec.ts` covers it. **Left for later lanes:** - Feedback: #1227 isn't on main, so the foot has a marked slot between What's new and the account. - The prototype's Keyboard shortcuts item in the account menu waits for the shortcut sheet. - What's new headlines are text until P9's permalinks exist. - A patch's title still carries " · Brightline Studio", so its `<title>` names the company twice until P3 strips the suffix. - The sidebar search still lands on Home (`/?q=`). Spec §2 sends it to `/patches?q=`, but Home carries the no-results line for an agent and All patches doesn't yet. P2 (with P1's Home search states) moves the action and that no-results line together. **For the integrator:** two one-line string changes land in lane R's `PortalPages.test.ts` (3281, 4021), and `render.ts`/`UserLifecyclePage.ts` get the "Company" copy. `scenarios/README.md` and a comment in `scripts/dev/src/scenario.test.ts` still say "at Company"; I left them to lane S. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The page frame and copy change; there are no new routes, and the API, CLI and schema are unchanged. - **What does a revert leave behind?** Nothing. It is markup, CSS and copy. - **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]>
) 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]>
75e1f05 to
77631b6
Compare
08abbf8 to
857cc17
Compare
1e26cf5 to
bda5bd3
Compare
The dashboard's withdraw page names what it withdraws, and an unlink's receipt names what it was linked to, so the store reads one submission as the person's list shows it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Between What's new and the account, a foot button opens a panel in What's new's frame: Request or Feedback, one field and Send, then What you sent. It sits outside the folding menu, so any page's button can open it beside itself with popovertarget, and its data-kind picks the kind. The field has no maxlength, which would count UTF-16 units and cut an emoji the store accepts. The note for a send it can't confirm waits inert in a template, so no page carries a second notice. button takes popovertarget, field and choiceGroup can keep their label for readers only, and the icon family gains a speech bubble, each with its gallery entry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tell Patchy's panel posts to /feedback as the dashboard, with no agent. A request's answer is a receipt naming its title, then its similar requests with their status badges and notes, Same need and Unlink; feedback gets its receipt. A long request is split into a title and its whole text as the why. A refusal draws the form again with the field's error, never the text, which the panel keeps in the person's field; a send it can't confirm is never sent again on its own. One change is in flight at a time and a stale answer is dropped. What you sent at /feedback is an index page of the shared table, with Unlink and Withdraw in each row's menu; Withdraw asks in a dialog over it. The card's one-notice test counts the page's own notices, in its main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…email The catalogue's Ask and a member's Ask for an integration open the shell's Tell Patchy panel beside themselves with Request picked, so the ask lands with Patchy's requests instead of in a mailbox. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A scenario names general requests and, per person, what they or their agents sent Patchy; up writes both with stable ids in the store's shape. dense gets five general requests, one of each status, and Allison's own and her agents' requests and feedback, three linked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ary and the UI spec Co-Authored-By: Claude Opus 5.5 <[email protected]>
The dashboard's no-script path shows a sent request's similar requests at an address of its own, after the send that filed it has answered, so the store matches a person's own request again with the query filing used, ranked now. Another person's id and a feedback id answer as missing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
From review. A send still on its way when the panel closed could answer after a new draft was written, cover it with the old receipt and let Done clear it: every close now settles what was in flight, and the panel opens again with the draft kept and the note pointing to What you sent. Without the panel's script a sent request now has an address of its own, /feedback/<id>/sent, a dialog over What you sent drawn by the same renderer as the panel, where Same need and Unlink post and come back. The send lands there; only the request's sender sees it. Closing the panel gives focus back to the button that opened it, or to Menu once that is folded away, after the switcher's chord and Escape and after a tap outside too. The browser suite drives the panel's script for the late reply and for focus, on a desktop and on a phone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he CLI's do #1218 moved the submission bounds into @patchy/api, so the CLI checks them before sending; the panel's title split reads them there too. The product says the CLI is built. Co-Authored-By: Claude Opus 5.5 <[email protected]>
From acceptance. Without script, Ask opened the panel with whatever kind was last chosen, since only the panel's script applied data-kind, so an integration request could go as feedback. The composer now has its own address, /feedback/new?kind=request (or feedback; anything else is a request): a dialog over What you sent with the panel's fields, posting as the panel does, and drawn again with the field's error when refused. Both Ask buttons are links to it; the panel's script opens the panel in place beside them instead, with the kind from the link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
124ed0c to
68681b8
Compare
Acceptance: PASS with notesChecked Scope of the re-check
Done means
New route and affected paths: passed, re-checked
Fresh evidenceThe committed browser spec also re-checked the late-reply/new-draft case, Escape and switcher focus restoration, and phone dismissal/Done focus. The temporary instance was taken down and its environment removed. No source changes or pushes. Other earlier passes retained explicitly
Golden journeys Earlier passes retained: sign in/out and machine login/logout; publish/open, share/unshare, retire/delete/restore; Home search/open and live Kudos updates between two viewers; invite/revoke, join, deactivate/reactivate. None of those implementations changed in the fix or the rebased PR commits. Rollback answers: Match the diff. No migration or new persisted shape; dashboard rows use the existing store contract and remain readable after a revert. Added store methods only read. The new composer route adds no durable state. No CI at posting: 22 checks passed, including browser, Node 24/26 and Bun tests, lint, Clerk, both CLI smoke jobs, all three install platforms, tier2-smoke, postgres-concurrency, release-tarball, server-image, dependency-review and rollback-rehearsal. Notes
Not run
Mirrored surfaces: The changed integrations links, core address/fields, portal route/refusal rendering, and panel script were checked. Product, glossary and UI-spec updates describe the new address. No public wire schema, CLI command/JSON contract, migration, company-resource caller or package-layout change in this PR. |
Stacked on #1227, the dashboard's `/feedback` page, so Patchy MCP never ships ahead of the page every answer links. ## What changed People's own agents reach Patchy only through Patchy MCP, and never load the `patchy` skill. The door could send a patch's missing tool to its owner, but a missing Patchy capability, or a Patchy fault, had nowhere to go. The door gains a fifth fixed tool, `tell_patchy { kind: "request" | "feedback", text, why? }`. It sends Patchy's team a request or feedback as the connection's person, through #1211's `Feedback` service, with surface `mcp` and the client name the person approved as the agent. Every answer links the person's page at `<instance>/feedback`, where they see or withdraw what their agent sent. The door's instructions name the tool, and the consent page says an agent can do this. Closes #1214 Part of #1210 **How it works** - **One tool, not two.** A request is something Patchy can't do; feedback is something it does wrongly or confusingly. The description says "feature request" and "feedback" in those words, because clients that load tools on demand search by text. It says a patch's own missing tool still goes to the patch's owner. It lists what to leave out: keys and tokens, connection strings, rows, file contents, other people's personal details and pasted logs. - **Results.** A request answers `{ id, similar, next, url }`, with up to three `{ id, title, status, note? }`. Feedback answers `{ id, next, url }`. `next` names no CLI command and no linking. When a match has shipped, it says to tell the person using its note. It always says they can see or withdraw what was sent at `url`. `url` is the public origin the door already reads (`PATCHY_PUBLIC_BASE_URL`) plus `/feedback`. - **`why` on feedback is refused, not ignored.** The store keeps exactly what was sent, so dropping a reason the agent wrote would quietly lose it. A blank `why` counts as none, as the service treats it. - **Admission.** It passes the same door gates as the other four: the `work` bearer, the person's requests a minute, and the `agent_access_off` refusal while access is off. It reads no patch, passes no patch's admission and mints no token. The service spends its own `feedback.sends.perMinute`. - **Refusals** are tool results with the store's codes, each saying what to rewrite: `invalid_text` with `details: { field }`, `contains_secret` with `details: { secrets: [{ field, kind }] }` (never the value), and `rate_limited` with `retryAfterSeconds`. A `text` too long for a request's title says a request's text is one line and the rest goes in `why`. - **Annotations:** not read-only, not idempotent and not destructive, since sending only adds a submission. With `destructiveHint` left out, the MCP default would mark it destructive. - **Instructions** now end "Send what Patchy itself lacks or gets wrong to tell_patchy." The earlier sentences were trimmed so that, with the person and company each cut at 64 characters, the worst case is 505 characters. A test holds that bound below 512. ## Look at **A worker agent on a local instance** (`pnpm dev up brightline`, Jordan via a Claude Code connection from `pnpm dev mcp-token`, a shipped general request written with psql as OPERATIONS.md shows): ``` $ modern server/discover → instructions You act for Jordan Lee at Brightline Studio through Patchy, where company tools are patches. find_patches lists those they can open, open_patch shows one's tools, read_patch runs a read and change_patch a change. You reach only tools builders added for agents; if one is missing, name the patch's owner. Every change is logged as them, via you. Send what Patchy itself lacks or gets wrong to tell_patchy. $ tools/call tell_patchy {"kind":"request","text":"Attio integration for our deal tracker","why":"Sales keeps every deal in Attio"} { "id": "req_sia8s0buut22bzb0hryx1qij", "similar": [ { "id": "gen_e82078e3d2c0479a8b9a1d38", "title": "Attio CRM integration", "status": "shipped", "note": "Connect Attio on Integrations; a patch reads its records through uses." } ], "next": "Patchy's team has this request, sent as the person you act for. A similar request has shipped: tell the person, using its note. They can see or withdraw it at http://<instance>/feedback.", "url": "http://<instance>/feedback" } $ tools/call tell_patchy {"kind":"feedback","text":"open_patch said New Business changed, but nobody had published since my last call."} { "id": "fbk_ajxhjme90jvae7aaqj5fvtxb", "next": "Patchy's team has this feedback, sent as the person you act for. They can see or withdraw it at http://<instance>/feedback.", "url": "http://<instance>/feedback" } $ legacy (2025-06-18) tools/call tell_patchy, with a GitHub token in the text {"content":[{"type":"text","text":"Nothing was stored: `text` holds a GitHub token. Remove it, or replace it with <token>, and send it again."}], "structuredContent":{"error":{"code":"contains_secret","from":"patchy","message":"Nothing was stored: `text` holds a GitHub token. Remove it, or replace it with <token>, and send it again.","details":{"secrets":[{"field":"text","kind":"github_token"}]}}},"isError":true} ``` Both submissions were stored as Jordan, via the connection's client. The door's request events carry the submission's id and the two limits it spent. A grep of the dev log for the why, the feedback text and the token finds none of them. ``` id | kind | person | surface | agent | why ------------------------------+----------+------------+---------+-------------+--------------------------------- req_sia8s0buut22bzb0hryx1qij | request | Jordan Lee | mcp | Claude Code | Sales keeps every deal in Attio fbk_ajxhjme90jvae7aaqj5fvtxb | feedback | Jordan Lee | mcp | Claude Code | {"route":"/mcp","status":200,"outcome":"success","mcpTool":"tell_patchy","submissionId":"req_sia8s0buut22bzb0hryx1qij","protocolEra":"modern","clientName":"Claude Code","limits":["mcp.requests.perMinute peak 3","feedback.sends.perMinute peak 1"]} {"route":"/mcp","status":200,"outcome":"refused","code":"contains_secret","mcpTool":"tell_patchy","protocolEra":"legacy","clientName":"Claude Code"} ``` <details><summary>The tool as <code>tools/list</code> shows it</summary> ```json { "name": "tell_patchy", "title": "Tell Patchy", "description": "Send Patchy's team a feature request or feedback about Patchy itself, as the person you act for: a request when Patchy can't do something, such as an integration or capability they need; feedback when it does, but wrongly or confusingly, such as a refusal that made no sense. A patch's own missing tool goes to the patch's owner, not here. Send each once. Leave out keys and tokens, connection strings, rows, file contents, other people's personal details and pasted logs; a credential is refused. A request answers similar ones with their status, and a shipped one's note says how to use it.", "inputSchema": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["request", "feedback"], "description": "request: Patchy can't do it. feedback: it does, but wrongly or confusingly." }, "text": { "type": "string", "minLength": 1, "maxLength": 4000, "description": "For a request, its title: one line saying what Patchy should do, 3–200 characters. For feedback, what happened and what you expected, up to 4,000." }, "why": { "type": "string", "maxLength": 4000, "description": "A request's reason: what the person is trying to do and why it matters. Requests only: feedback with a why is refused, so put everything in its text." } }, "required": ["kind", "text"], "additionalProperties": false }, "annotations": { "readOnlyHint": false, "destructiveHint": false, "idempotentHint": false } } ``` </details> **The consent page** gains one line in what the agent can do: "It can send requests and feedback to Patchy’s team". The screenshots this PR carried showed the consent page before the UI overhaul (#1332–#1354); the line now sits in the overhauled page's `canList`, and here it is at this head, from the acceptance run:  ## How it was verified - **Tests** (`packages/mcp`, 77 pass; `packages/auth`'s consent test): ``` ✓ Tell.test.ts > tell_patchy > sends a request as the person via the connection's client, answering its matches and their page ✓ Tell.test.ts > tell_patchy > sends feedback as the person, answering its id and their page, where both show ✓ Tell.test.ts > tell_patchy > refuses with the service's codes, saying what to rewrite, and stores nothing ✓ Tell.test.ts > tell_patchy > is listed and called on every revision the door serves ✓ Door.test.ts > the door > lists the same five tools for everyone, read_patch read-only and change_patch destructive ✓ Door.test.ts > the door > keeps the instructions under 512 characters with the longest name and company ✓ Door.test.ts > the door > refuses every tool call while agent access is off, naming the admins and nothing else ✓ OAuthEndpoints.test.ts > asks who meets whom, what the agent can and can't do, and where the answer goes ``` The revisions test lists and calls `tell_patchy` on 2026-07-28's per-request envelope, then on 2025-11-25 and 2025-06-18. The access-off test now includes `tell_patchy` and checks that nothing was stored. "Both show" reads the person's own list through `Feedback.list`, the list the dashboard's page shows. - **`pnpm verify`** (Node 24, as CI runs it): format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser passed. `test` and `test (bun)` failed only in files this PR doesn't touch, under load from other worktrees. The CLI's stub-server files failed on a stray local `GET /` in their request logs; `cliLook.test.ts` passes alone. The PGlite files (`Tables`, `PgliteCompanyDatabases`, the Postgres dev fixture), `LocalTaskProvider` and `RequestEvents` timed out or counted a stray request, and pass alone, `RequestEvents` 12/12 in the bun lane's config as well. After rebasing onto #1227 (one conflict, the status sentence in `docs/product.md` › Requests and feedback, which now names the store, the dashboard and this door as built), `packages/mcp` passed again (77). - **Rebased 2026-11-11** onto #1227 after the store and the CLI merged and main took the UI overhaul. Two conflicts: the consent line moved into the new consent page's list, and `docs/product.md`'s status line now names every door as built. One new commit reads `tell_patchy`'s bounds from `@patchy/api`, where #1218 moved them. After it: `packages/mcp` 77, the consent test 21 and `packages/api` 64 pass, with lint and typecheck. - **Not checked:** a real worker agent choosing the tool on its own. The local Codex worker couldn't run because this machine's Codex login had expired, and the Claude worker signs in through a person's browser. The `/feedback` link is the dashboard's page from #1227, which this stacks on. **Hit every surface.** These applied: - **The wire contract**: the door's tool list, results and refusals, with `docs/API.md` › Agent tools re-rendered from `packages/api/src/markdown.ts`. The MCP protocol dates are unchanged. - **Vocabulary and product shape**: `packages/mcp/GLOSSARY.md` (five fixed tools, sends through Feedback), the Patchy MCP lines in `GLOSSARY-MAP.md` (its context and its relationship, which gains Feedback), `docs/product.md` › Patchy MCP (what an agent reaches, confirmation, what a client learns first, the tools, bounds, consent) and › Requests and feedback, and ADR-0014, which named four tools. Also the count in the README, Analytics' glossary and the wide event's comment, and Publishing's glossary. - **Served pages**: the consent page's one new row in an existing list. - **Reverse states**: whatever an agent sends, the person withdraws on the dashboard's page, which is why this ships after it. These did not apply: the CLI and its skills, since worker agents load none; migrations, since the store's schema already allows surface `mcp`; the dev loop; company resources. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Additive: a new tool in a list clients cache for up to 24 hours. A client that cached the old list sees `tell_patchy` the next time it lists. Nothing existing changes shape, and the protocol dates stay the same. - **What does a revert leave behind?** Submissions with surface `mcp` in the `feedback` schema, which the store from #1211 already accepts and lists. - **Does the release before it still work with that?** Yes. Clients that cached a list with `tell_patchy` get `-32602 unknown_tool` from it until they list again, as for any tool name the door doesn't have. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ey shortcuts (#1421) ## What changed This adds release 42's What's new entry, written from `1cd6d12`. It covers everything merged since release 41's `through` (`a25a9c5`), and sets the `patchy` release to `0.42.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228 | | New: Turn off single-key shortcuts | #1276, #1279, #1301 | | Fixed: Typing reaches the patch again | #1407, #1412 | | Fixed: Dialogs in patches keep your place | #1420, #1255 | | Behind the scenes: plainer facts for agents building patches | #1249, #1256, #1297, #1418 | | Behind the scenes: Patchy stores teams and audiences ahead of teams | #1416 | | Patch changes: Mod+/ and `client.close()` in patchy/hotkeys; single-key shortcuts can be off; Tab wraps in plain modal dialogs | #1279, #1301, #1420 | #1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302, #1413 and #1419 are test, CI and dev tooling and need no line. The teams bridge (#1416) ships alone in this release so teams (#1417) can follow in the next one with a release to roll back to that reads its data closed. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `7f93b91` (release 41) to this PR's merge.** No PR in the range is labelled `one-way`, and every Release impact answer says release 41 still works: - **#1217** adds migration `0037_feedback`, a schema release 41 never reads. **#1227** and **#1228** write into it. - **#1276** adds migration `0038_single_key_shortcuts`, a column with a default that release 41 never selects. - **#1416** adds migrations `0039_company_teams` to `0041_connection_audiences`, which hold tables that stay empty until teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 → head → 7f93b91 → head` on one set of data, and all four steps passed. - **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the shell. Patches built on this release carry a `shortcutSetting` manifest field that release 41 reads without refusing, and its shell names no frame, so every shortcut stays on. - **#1218** and **#1219** add CLI commands and an optional `feedbackHint` in `--json` failures. A CLI from this release refuses to publish to an older instance before sending anything, as any mismatched release does. - Everything else is skill text, docs, tests and CI. If this release misbehaves, roll back to `7f93b91` (release 41). Written by Claude Opus 5.5 in Claude Code, through T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
People had no way to tell Patchy what it lacks or got wrong without a terminal, and nowhere to see or take back what their agents sent. The only path was a
mailto:on the integrations page. Now Tell Patchy sits in the sidebar's foot between What's new and the account, and opens a panel in What's new's frame: Request or Feedback, one field, Send. A request's receipt is followed by its similar requests, each with its status and public note, and Same need links one in a click. What you sent at/feedbacklists everything the person and their agents sent, with Unlink and Withdraw… in each row's menu. Integrations' Ask and Ask for an integration open the same panel with Request picked. This is Direction A from the mocks (post.patchyhq.com/d/irl2myfbmdgk), ported onto the new component set.Part of #1210, closes #1215
Ported onto the new component set. While this waited, main replaced the first-party UI: the overhaul (#1332–#1354, #1371), the component set and five templates (#1338), the new sidebar (#1341), What's new's foot menu (#1350), and a check that fails a page that styles itself (#1354). The classes the first version used are gone. This version keeps the same concept, flows and behaviour, and draws everything from core's helpers with no page CSS. The look follows the system rather than the mock, and the departures it forces are listed under Look at.
How it works
The panel lives in the shell (
packages/core/src/html.ts), so every app page has it. It is amenu app-foot-menupopover, like What's new's, anchored to whichever button opened it. It sits outside the folding Menu, because a popover inside a hidden menu can't show, so any page's button withpopovertarget="tell-patchy"opens it; itsdata-kindpicks the kind. The form ischoiceGroup,fieldandtextarea, with nomaxlength, plus a primary Send. Its styles are a few lines in core'sapp-shellchunk.Sending goes through
/feedback/tell.js. It posts the panel's forms with apatchy-panelheader, and the server answers with markup drawn by helpers:receiptnaming its title, thenrowsof matches, each with abadge, its note, Same need and Unlink;error.The script only moves server-drawn markup and toggles
hidden, so it draws no component.Without the script, the composer has its own address,
/feedback/new?kind=request(orfeedback; anything else is a request), adialogover What you sent with the panel's fields. A refused send from it draws it again with the field's error and an empty field. Integrations' Ask buttons are links to it: the panel's script opens the panel beside them instead, with the kind taken from the link. A sent request lands at its own address,/feedback/<id>/sent. It is adialogover What you sent, drawn by the same renderer as the panel's answer, where Same need and Unlink post and come back to it. Done and Close go to What you sent. Only the request's sender sees it, and another person's id or a feedback id answers 404. Feedback lands on What you sent with a receipt, and a refusal on What you sent with arefusalabove its table.Behaviour carried over unchanged:
patchy-panelcontract;requestOf: the first line, or the opening words cut with "…", becomes the title, and the whole text the why);Feedback.get, and surfacedashboardwith no agent.What you sent is
indexPageover the sharedtable(Sent, What, From, Status, amenuper row), paged by the store's cursor with Older. It lights no place. Withdraw… opens adialogover it at/feedback/:id/withdraw, with Cancel first and focused and Withdraw request indanger-solid, as Your agents' Disconnect does.Small core additions:
buttontakespopovertargetandpopovertargetaction;fieldtakeshideLabelandchoiceGrouptakeshideLegend, keeping the mock's label-free composer while readers still get the names;messageicon.Each comes with its gallery entry. Feedback joins the portal's services, and FeedbackPages is registered with the other portal surfaces.
densenow shows both: five general requests, one of each status and two with notes, plus Allison's own requests and feedback beside her agents' (Claude Code and Codex through the CLI, ChatGPT through Patchy MCP, and one unnamed agent), three of them linked. These are seeded through two new scenario fields,generalRequestsand per-personsent. The ids are stable and in the store's shape, so a resumedupwrites the same rows and the cursor pages them.Store changes, each in its own commit with a test:
Feedback.get({ person, id }), which the withdraw dialog, the Unlink receipt and the sent address read;Feedback.similarTo({ person, id }), which matches one of the person's own requests again with the query filing used, ranked now, for the sent address.Look at
Flow
tell-patchy, as Allison Mahmood (admin)After is
857cc17(feedback/portal), on thedensescenario, frompnpm dev film.after.mp4
Before and after, as Allison Mahmood (admin)
Before is
6a5a29c(where this branch left main) and after is857cc17(feedback/portal), both on thedensescenario, frompnpm dev compare./settings/integrations/connect1280px, after
1280px, before
/feedback1280px, 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).With Patchy's general requests, on a local
denseinstance as Allison. Fresh evidence instances run the same scenario.1. Send a request from the foot, see similar requests, link one and unlink it
Composing, and after Unlink
2. A key is refused on the field, and Ask for an integration opens the panel with Request picked
3. What you sent, a row's menu, Withdraw
4. When a send's answer is lost (the server stored it and the browser never heard back): nothing is sent again, the draft stays, and the note points to What you sent.
5. Without script: the sent request's own address, then linked from it
Phone, without script
6. Phones: the panel opens above the foot inside Menu, the table scrolls sideways, Withdraw is a bottom sheet
Phone: from Integrations, What you sent, a row's menu, Withdraw
Departures from Direction A that the new system forces
receipt, "Request sent: <title>", and a link leaves "Linked to ". The mock showed a bordered "Request sent" note.badges with the mapping main's overhaul gave the old pills: Shipped green, Planned blue, Declined red, Open plain.rowin a 360px panel does. The mock put the badge beside the title.<template>, so no page carries a hidden second notice. The card's one-notice test now counts the page's own notices, inside<main>.Still standing from the first version:
How it was verified
Tests.
packages/portal/src/FeedbackPages.test.tsis ported to the new markup without dropping what it asserts:dashboardwith no agent. The answer is a receipt, the shipped general request with its badge and note, and Done;requestOf's edges;/feedback/new: Request picked for?kind=request, a bogus kind or none, and Feedback for?kind=feedback, under its own ids beside the panel's form. A request sent from it lands at its own address. A refused send from it is drawn again with the field's error, the kind as sent and an empty field, and never echoes the key;/feedback/<id>/sent. The dialog there shows the receipt, the shipped match and Same need, over the table. Same need and Unlink (withfrom=sent) each post and come back to it, linked and then unlinked. Another person, and a feedback id, get 404.Feedback.test.tscoverssimilarTo: three matches ranked now, never itself or another company's, and missing for another person, for feedback and for an unstorable id.test/browser-tier1/tell-patchy.spec.ts, in the browser suite, runs the panel's script:/feedback/new?kind=requestwith Request picked.The shell's tests (
html.test.ts) cover the foot order, the panel outside the menu, the label-free field withoutmaxlength, the inert note, the script on every app page and What you sent lighting no place.ConnectionsView.test.tscovers both Ask buttons. Dense's history test covers the seeded submissions, their id shape, and that a resumedupwrites the same rows.pnpm checkat this tree:patchy/no-page-stylesandpatchy/no-hand-drawn-components), typecheck and synth pass;PgliteCompanyDatabases.test.ts, which this change doesn't touch; it passes run alone.In a browser. Playwright Chromium drove the walkthrough on a local
denseinstance at 1280 and 390 wide:The review's three cases still hold on the ported markup. A send whose answer was cut after the server stored it is stored once and keeps its draft. A second Same need pressed while the first is held for 1.5 s sends nothing, and the panel's "Linked to" matches the database. Closing the panel during a held Unlink and reopening it shows a fresh form.
Not checked.
tell_patchyis feat(mcp): worker agents tell Patchy what it lacks or got wrong #1214.pnpm verify's browser and packed suites weren't re-run for this port.Review
GPT 6.1 Sol reviewed the first version. Its findings were fixed then, and each fix is carried through the port with its test:
maxlength; the server's 4,000-character refusal is the one bound.Sol reviewed the port at 857cc17. The four findings above still held, and it raised three more, fixed in ea0eb68 with the store method in c33ceb1:
/feedback/<id>/sent: a dialog over What you sent with the receipt, the matches and native Same need and Unlink forms. Both post and come back to it, so it reads "Linked to …". Only its sender sees it. The matches come fromFeedback.similarTo, the matching query run again.patchy:switcher-closed;The panel's script now runs in a committed test,
test/browser-tier1/tell-patchy.spec.tsin the browser suite, which covers finding 5's ordering and finding 7's focus on a desktop and on a phone. Finding 2, two links racing, is still checked by hand in Chromium only.Acceptance on bda5bd3 (GPT 6.1 Sol) passed everything but one gap, fixed in 124ed0c:
data-kind, so with JavaScript off, choosing Feedback in the panel and then pressing Ask sent an integration request as feedback. The composer now has its own address,/feedback/new?kind=request: a dialog over What you sent with the panel's fields, Request picked. Both Ask buttons are links to it, throughlinkButtonand core'stellPatchyHref. With script, the panel opens in place beside the link with Request picked, and a modified click still opens the address. A route test covers the kinds and the fallback, and the browser spec covers Ask after Feedback, with and without script.Release impact
Additive: new pages and routes, a panel in the sidebar, an option on
button,fieldandchoiceGroup, an icon, one read method on the store and two dev scenario fields. No schema change.feedback.submissionswith surfacedashboard, which the store already accepts. Nothing else.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code.