Skip to content

feat(portal): send Patchy a request or feedback, and see what you sent - #1227

Merged
allisonmahmood merged 10 commits into
mainfrom
feedback/portal
Nov 11, 2026
Merged

allisonmahmood merged 10 commits into
mainfrom
feedback/portal

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

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 /feedback lists 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 a menu app-foot-menu popover, 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 with popovertarget="tell-patchy" opens it; its data-kind picks the kind. The form is choiceGroup, field and textarea, with no maxlength, plus a primary Send. Its styles are a few lines in core's app-shell chunk.

  • Sending goes through /feedback/tell.js. It posts the panel's forms with a patchy-panel header, and the server answers with markup drawn by helpers:

    • a sent request: a receipt naming its title, then rows of matches, each with a badge, its note, Same need and Unlink;
    • a refusal: the form drawn again with the field's 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 (or feedback; anything else is a request), a dialog over 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 a dialog over 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 a refusal above its table.

  • Behaviour carried over unchanged:

    • the routes and the patchy-panel contract;
    • the long-request split (requestOf: the first line, or the opening words cut with "…", becomes the title, and the whole text the why);
    • no automatic resend after an ambiguous failure;
    • one change in flight across the panel, with a counter that drops stale answers. Every close settles what was in flight: the panel opens again with the draft kept and the "couldn't confirm" note;
    • closing gives focus back to the button that opened it, or to Menu once that is folded away, after the switcher's chord and after a tap outside too;
    • Feedback.get, and surface dashboard with no agent.
  • What you sent is indexPage over the shared table (Sent, What, From, Status, a menu per row), paged by the store's cursor with Older. It lights no place. Withdraw… opens a dialog over it at /feedback/:id/withdraw, with Cancel first and focused and Withdraw request in danger-solid, as Your agents' Disconnect does.

  • Small core additions:

    • button takes popovertarget and popovertargetaction;
    • field takes hideLabel and choiceGroup takes hideLegend, keeping the mock's label-free composer while readers still get the names;
    • a speech-bubble message icon.

    Each comes with its gallery entry. Feedback joins the portal's services, and FeedbackPages is registered with the other portal surfaces.

  • dense now 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, generalRequests and per-person sent. The ids are stable and in the store's shape, so a resumed up writes 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 the dense scenario, from pnpm dev film.

  • After: finished in 17.2s
after.mp4

Before and after, as Allison Mahmood (admin)

Before is 6a5a29c (where this branch left main) and after is 857cc17 (feedback/portal), both on the dense scenario, from pnpm dev compare.

/settings/integrations/connect

1280px, after

After: /settings/integrations/connect at 1280px

1280px, before

Before: /settings/integrations/connect at 1280px

Width Before After
390px No visible change After: /settings/integrations/connect at 390px
/feedback

1280px, after

After: /feedback at 1280px

1280px, before

Before: /feedback at 1280px

Width Before After
390px Before: /feedback at 390px After: /feedback 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).

With Patchy's general requests, on a local dense instance as Allison. Fresh evidence instances run the same scenario.

1. Send a request from the foot, see similar requests, link one and unlink it

Request sent: a receipt naming the title, then three similar requests: her own earlier one, Shipped; Postgres encryption options, Shipped, with its note; Bring your own encryption keys, Planned

After Same need: Unlink on that match, and a receipt reading Linked to Postgres encryption options

Composing, and after Unlink

Tell Patchy open above its foot button, Request picked

After Unlink: Same need back on every match

2. A key is refused on the field, and Ask for an integration opens the panel with Request picked

Your request has a Google API key in it. Nothing was saved. The text stays in the field, marked invalid.

Opened from the catalogue's Ask, beside it, with Request picked although Feedback was last chosen

3. What you sent, a row's menu, Withdraw

What you sent: Allison's own requests and feedback beside Claude Code, Codex and ChatGPT's, one Unknown agent, statuses Shipped, Planned, Open and Declined

The row menu: Unlink from Gmail integration, then Withdraw…

Withdraw “Gmail integration for the sales inbox”? Patchy deletes it and everything Claude Code sent with it. Cancel focused, Withdraw request.

Back on What you sent with the receipt Withdrew your request

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.

Patchy couldn't confirm that. It may have gone through. Check What you sent before you try again.

5. Without script: the sent request's own address, then linked from it

Without script: the send lands on a Tell Patchy dialog with the receipt and three similar requests, each with Same need

After Same need without script: back at the same address, Unlink on the linked match and a Linked to receipt

Without script, after picking Feedback in the panel: Ask for an integration opens the composer at its own address with Request picked

Phone, without script

Phone without script: Ask opens the composer with Request picked

Phone without script: the sent dialog, then linked

6. Phones: the panel opens above the foot inside Menu, the table scrolls sideways, Withdraw is a bottom sheet

Phone: composing, sent with matches, linked, refused

Phone: from Integrations, What you sent, a row's menu, Withdraw

Phone: opened from Ask, What you sent, the row menu, the Withdraw sheet

Departures from Direction A that the new system forces

  • Receipts, not green boxes. Success is quiet, so a sent request leaves a receipt, "Request sent: <title>", and a link leaves "Linked to ". The mock showed a bordered "Request sent" note.
  • Statuses are badges with the mapping main's overhaul gave the old pills: Shipped green, Planned blue, Declined red, Open plain.
  • A match stacks its title, note, then badge and Same need, as a row in a 360px panel does. The mock put the badge beside the title.
  • A refusal is the field's error, one red sentence under the field that the field is marked against ("Your request has a Google API key in it. Nothing was saved. Take it out, or write where it was, and send again."), rather than the mock's callout box.
  • No bottom sheet on a phone. Foot menus open above their button now, so Tell Patchy does too, as What's new does. Withdraw's dialog is the system's bottom sheet on a phone.
  • Withdraw is a dialog over What you sent, as confirmations on list pages are now, rather than a page of its own. Its URL is unchanged.
  • Main's copy on Integrations. The page now says Ask in the catalogue's "Something else" row and Ask for an integration in a member's header. Both open the panel; I kept those words rather than "Request an integration".
  • An icon in the foot. Every foot place wears one now, so Tell Patchy has a speech bubble. Its panel heading is the menu's head, as What's new's is.
  • One notice a page. The note for a send it can't confirm waits inert in a <template>, so no page carries a hidden second notice. The card's one-notice test now counts the page's own notices, inside <main>.
  • The From column is drawn the way All patches' Owner column is, a mark then the name over its surface. A grid cell there let the table squeeze it to nothing.

Still standing from the first version:

  • Sent reads "just now" or "2 days ago", because the server doesn't know the reader's time zone.
  • The panel opens beside whichever button opened it.
  • Feedback's receipt doesn't repeat the note.
  • Done also closes the Menu it was opened from.
  • A long request is split into a title and its whole text as the why, never refused.

How it was verified

  • Tests. packages/portal/src/FeedbackPages.test.ts is ported to the new markup without dropping what it asserts:

    • a send from the panel is stored as dashboard with no agent. The answer is a receipt, the shipped general request with its badge and note, and Done;
    • link, then unlink from the row menu without the script;
    • a pasted paragraph is filed as a title and a why. Exactly 4,000 characters ending in an emoji is accepted as a request and as feedback, and 4,001 is refused, as is too-short text;
    • a Google key is refused with 422 and nothing stored, and never echoed. In the panel, the answer is the form with the field's error and an empty field. Without the script, it is What you sent with a danger notice;
    • the list shows the person's own entries beside Claude Code · CLI, ChatGPT · Patchy MCP and Unknown agent · CLI, without notes;
    • another person's GET and POST withdraw, link and unlink all answer 404 on a live submission. The owner then withdraws it through the dialog, and the withdrawn id answers 404;
    • requestOf's edges;
    • the composer at /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;
    • without script, a send redirects to /feedback/<id>/sent. The dialog there shows the receipt, the shipped match and Same need, over the table. Same need and Unlink (with from=sent) each post and come back to it, linked and then unlinked. Another person, and a feedback id, get 404.

    Feedback.test.ts covers similarTo: 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:

    • a send held until the panel closed and opened again leaves the new draft alone, with the note;
    • Escape gives focus back to Tell Patchy, and so do the switcher's chord and Escape;
    • on a phone, a tap above the panel gives focus back to Tell Patchy, and Done closes Menu and gives focus to it;
    • after Feedback was picked, Ask for an integration opens the panel in place with Request picked and the field focused. Without script, it opens /feedback/new?kind=request with Request picked.

    The shell's tests (html.test.ts) cover the foot order, the panel outside the menu, the label-free field without maxlength, the inert note, the script on every app page and What you sent lighting no place. ConnectionsView.test.ts covers both Ask buttons. Dense's history test covers the seeded submissions, their id shape, and that a resumed up writes the same rows.

  • pnpm check at this tree:

    • format, lint (including patchy/no-page-styles and patchy/no-hand-drawn-components), typecheck and synth pass;
    • tests: 3,475 of 3,476. The one failure was a 5-second timeout in PgliteCompanyDatabases.test.ts, which this change doesn't touch; it passes run alone.
    • Focused suites pass: portal, core (including the stylesheet rules and the gallery inventory), feedback and the integrations view, 552 tests, plus the dev history and scenario tests, 12.
  • In a browser. Playwright Chromium drove the walkthrough on a local dense instance at 1280 and 390 wide:

    • focus starts in the field, and moves to Unlink after Same need;
    • the panel reopens fresh after Done, the draft and the invalid mark survive a refusal, and Ask picks Request;
    • Withdraw's Cancel takes focus;
    • the only console error was the expected 422 from the refused key.

    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.

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:

  1. P2: an automatic retry duplicated a submission. The script never resends on its own; it keeps the draft and shows the note that links What you sent.
  2. P2: overlapping links could show the wrong saved state. One flag covers the whole panel, and a counter drops answers for a panel reset since they were sent. There is no committed test for the ordering, since the script is a string served to the browser and the repo has no DOM test library. It was checked in Chromium, as above.
  3. P3: the ownership test checked an already-deleted id. Another person tries a live submission first, and the deleted id is checked separately.
  4. P2: the textarea silently cut valid input. There is still no 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:

  1. P2: a late Send reply could discard a new draft. A close while composing didn't bump the counter, so a held reply landed after a new draft: its receipt covered the draft, and Done cleared it. Now every close settles what was in flight. If a send was on its way, the panel opens again with the draft kept and the note pointing to What you sent.
  2. P2: Same need was gone without script. A send without script now redirects to the request's own address, /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 from Feedback.similarTo, the matching query run again.
  3. P3: dismissal lost focus. The panel records the button that opened it and gives focus back on close, or to Menu when that button is folded away. Two cases needed more than a check at close:
    • the switcher's chord closes the panel, and its Escape returns focus to the now-hidden field, so the panel waits for patchy:switcher-closed;
    • a tap moves focus for itself after the panel closed, so the panel checks again on that tap's click.

The panel's script now runs in a committed test, test/browser-tier1/tell-patchy.spec.ts in 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:

  1. Ask for an integration kept Feedback without script. Only the panel's script applied the Ask buttons' 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, through linkButton and core's tellPatchyHref. 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

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

Additive: new pages and routes, a panel in the sidebar, an option on button, field and choiceGroup, an icon, one read method on the store and two dev scenario fields. No schema change.

  • What does a revert leave behind? Rows sent from the dashboard stay in feedback.submissions with surface dashboard, which the store already accepts. Nothing else.
  • Does the release before it still work with that? Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code.

@github-actions github-actions Bot added area:server Touches the server area area:core Touches the core area area:docs Touches the docs area area:integrations Company connections and integration implementations 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 4, 2026
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
…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:

![Phone menus
after](https://github.com/user-attachments/assets/cf76bbb5-60fb-466d-bed7-cce15709f6f6)

<details><summary>Before</summary>

![Phone menus
before](https://github.com/user-attachments/assets/8550eef3-3534-4b76-8d2b-9ed0748089e8)

</details>

What's new and the account menu on a wide window, after then before:

![Foot menus
after](https://github.com/user-attachments/assets/80795f60-bd02-4efa-b41b-655497e99d96)

<details><summary>Before</summary>

![Foot menus
before](https://github.com/user-attachments/assets/2b24078f-4545-49d1-b64d-9ff99e8ab66d)

</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**

![After: /settings/people at
1280px](https://github.com/user-attachments/assets/5f5fdb68-db2e-4edc-a884-f8d1abf7b831)

<details><summary>1280px, before</summary>

![Before: /settings/people at
1280px](https://github.com/user-attachments/assets/6a2429ea-5ff1-4058-9fed-6d5a4b733d4c)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/people at
390px](https://github.com/user-attachments/assets/37f1e3c9-aea2-4002-9c70-e4a8a6d5e2fa)
| ![After: /settings/people at
390px](https://github.com/user-attachments/assets/9b778c1a-c4f7-43ee-ae68-2f2a327fbea1)
|

##### `/`

**1280px, after**

![After: / at
1280px](https://github.com/user-attachments/assets/ac257f65-d996-4f0f-8ec4-8e6594619cbb)

<details><summary>1280px, before</summary>

![Before: / at
1280px](https://github.com/user-attachments/assets/cb7e3395-bed9-4273-a854-11743e4b4c36)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: / at
390px](https://github.com/user-attachments/assets/277c0c4a-f397-450e-9cdc-b4468e0cf89a)
| ![After: / at
390px](https://github.com/user-attachments/assets/8f2e7b10-68f5-4abf-8377-be3d3a34b187)
|

##### `/patches/new-business`

**1280px, after**

![After: /patches/new-business at
1280px](https://github.com/user-attachments/assets/2fb30898-5562-4b24-8b28-7e2cc9f58045)

<details><summary>1280px, before</summary>

![Before: /patches/new-business at
1280px](https://github.com/user-attachments/assets/de8c21aa-efa8-4ad5-a1cb-e79527a3709e)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business at
390px](https://github.com/user-attachments/assets/42287818-0070-4eb6-bd80-8dad39bdf266)
| ![After: /patches/new-business at
390px](https://github.com/user-attachments/assets/a864a6d2-77d9-4478-a961-ae9584c7ccf5)
|

<!-- /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**

![After: /settings/integrations at
1280px](https://github.com/user-attachments/assets/6b4841d4-8f8d-452b-b937-bf359bf09bf7)

<details><summary>1280px, before</summary>

![Before: /settings/integrations at
1280px](https://github.com/user-attachments/assets/977fc190-1aee-410e-bf59-18d83b6cf31c)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/integrations at
390px](https://github.com/user-attachments/assets/5ef6b56c-6eff-4a3b-8271-bbc2ff986c16)
| ![After: /settings/integrations at
390px](https://github.com/user-attachments/assets/ba88e2f6-4996-43ea-9a0a-d3592be05988)
|

##### `/agents`

**1280px, after**

![After: /agents at
1280px](https://github.com/user-attachments/assets/a412003c-b12b-4af2-a9b6-f1ae3ed9afc1)

<details><summary>1280px, before</summary>

![Before: /agents at
1280px](https://github.com/user-attachments/assets/642cbee4-00bd-438d-9e60-4e41c4df5e86)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /agents at
390px](https://github.com/user-attachments/assets/874495dc-efb7-4e3f-ad03-853f82afe6db)
| ![After: /agents at
390px](https://github.com/user-attachments/assets/5c2be7b9-1dcb-4b14-8b87-f35aa76c68d1)
|

<!-- /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]>
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
allisonmahmood force-pushed the feedback/store branch 2 times, most recently from 75e1f05 to 77631b6 Compare November 11, 2026 12:30
Base automatically changed from feedback/store to main November 11, 2026 13:02
@github-actions github-actions Bot added the area:ci CI, shared testing infrastructure, development scripts and tooling label Nov 11, 2026
allisonmahmood and others added 10 commits November 11, 2026 16:32
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]>
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]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 68681b893281206747365caa385f2fb5bdde17e7 (base 977a83278dda107df78591c40d1fe07535e9cf6f) on fresh dense scenario data, by GPT-6.1 Sol (xhigh) in the Codex harness through T3 Code. Node 24.20.0; Chromium at 1280px and 390px, JavaScript disabled and enabled, with touch/mobile contexts at 390px. Replaces the FAIL on bda5bd3d103adf2bebd86abe919e1127d239f0ea.

Scope of the re-check

git range-diff bda5bd3d~9..bda5bd3d origin/main..68681b89 reports all nine earlier commits identical (=), followed by the single Ask fix. The base advanced through #1219; its file set has no overlap with this PR. Its API-client addition is optional and consumed by the CLI. No other dashboard behavior changed. The earlier passes listed below are explicitly retained; the fix and its affected paths were exercised afresh.

Done means

  • Dashboard request → similar requests → Same need → Unlink: passed, retained. The earlier run verified receipts, statuses/public notes, persisted linking/unlinking, undo focus, and native forms at both widths. Fresh sends through Ask and the new dialog still produce request receipts and similar requests.
  • See and withdraw an agent request: passed, retained. The isolated CLI's request appeared as Codex / CLI beside You / Dashboard and the other scenario agents. Cancel preserved it and restored focus; Withdraw removed it with a receipt.
  • Integrations opens the form with Request selected: passed, re-checked. Repeated the exact failing sequence: open the catalogue, open Tell Patchy (inside Menu on a phone), select Feedback, dismiss the panel/Menu, then press Ask beside Something else. Also repeated it from the member's header. Both widths and both JavaScript modes now select Request. Sending stores a request with surface dashboard and no agent. Without script it reaches /feedback/:id/sent; with script it stays in the page and shows the request receipt.

New route and affected paths: passed, re-checked

  • /feedback/new?kind=request selects Request; kind=feedback selects Feedback; a missing or invalid kind selects Request. The new dialog appears over What you sent, with its field focused. The foot panel and dialog have distinct ids, including on refused responses; no duplicate ids were found.
  • Ask's address contains only kind=request, even after a draft was entered in the foot panel. The native composer starts empty. Sends carry text in the POST body; navigation and redirects contain no draft. A long request's private explanation is absent from its receipt; feedback's receipt omits its note.
  • Signed-out composer GETs and same-origin sends return the 401 sign-in door. Authenticated pages are private/no-store. A foreign Origin, missing Origin without same-origin Fetch Metadata, cross-site metadata, or a conflicting Origin returns 403 without storing anything. Matching Origin and same-origin metadata work. Forged surface/agent fields do not change dashboard attribution.
  • For both kinds, a synthetic credential sent from the dialog returns 422 with the field's error, the submitted kind selected and an empty field. The response contains neither the credential nor its draft, stores no row, and sets no redirect or receipt cookie. Checked at both widths with JavaScript off/on.
  • Native sends from the new dialog work with JavaScript off/on: a request returns 303 to /feedback/:id/sent; feedback returns 303 to /feedback, showing Feedback sent without the note.
Fresh evidence
Ask after Feedback — catalogue and member header:
1280px, JavaScript off: Request; POST 303 → /feedback/:id/sent
1280px, JavaScript on:  Request; POST 200 → in-place request receipt
390px, JavaScript off:  Request; POST 303 → /feedback/:id/sent
390px, JavaScript on:   Request; POST 200 → in-place request receipt

All four width/script combinations:
new route kinds/defaults: correct; duplicate ids: none
credential refusal, both kinds: 422; empty redraw; no echo or stored row
new dialog request: 303 → /feedback/:id/sent
new dialog feedback: 303 → /feedback; Feedback sent; note omitted

Focused portal/shell/integrations suites: 3 files, 50 tests passed
Committed Tell Patchy browser spec: 4 tests passed

The 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

  • Credential refusals for both kinds with/without the panel header; no stored row, redirect, receipt or server echo.
  • Long-paste title/why handling; dashboard/no-agent attribution despite forged fields; 4,000 Unicode characters including a final emoji accepted, 4,001 and too-short requests refused.
  • Same-company and cross-company ownership isolation for sent/withdraw/link/unlink, company-safe matches, and list pagination of 50 then two remaining rows.
  • Ambiguous/late sends stored once without automatic replay, preservation of a reopened draft and the uncertainty note, and focus restoration. The committed script cases also passed afresh above.
  • Native composer, receipt, matches/status/note, link/unlink, Done, row menus, withdraw and feedback receipt at both widths. Ask's former exception is now fixed.
  • Direction A's foot entry, shared composer, post-submit matches and What you sent remain intact within the shared component system.

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 one-way label needed; rollback-rehearsal passed on this head.

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. test (22) and attio-live are still running; pidgeon-suite is pending. Of those, only test (22) is required. None is counted as passed. No red check to attribute to this change or a flake.

Notes

  • The former failure is fixed. The remaining qualification is unfinished CI on this head; this verdict does not claim the PR is ready to merge.

Not run

  • Firefox, Safari or physical phones; phone checks used Chromium mobile/touch viewports.
  • Manual Clerk sign-in or real invitation mail; used dev personas. The head's CI Clerk check passed.
  • A real Patchy MCP client; earlier agent evidence used the isolated CLI and scenario MCP entries.
  • A fresh repeat of every retained journey or the full local pnpm verify; this run targeted the verified commit delta and its affected paths.

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.

@allisonmahmood
allisonmahmood merged commit 5602b68 into main Nov 11, 2026
24 of 25 checks passed
@allisonmahmood
allisonmahmood deleted the feedback/portal branch November 11, 2026 15:46
allisonmahmood added a commit that referenced this pull request Nov 11, 2026
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:

![Consent page at this head, with the line It can send requests and
feedback to Patchy’s
team](https://github.com/user-attachments/assets/c6d0e737-7860-4f36-91cf-78a4e74cb78e)

## 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]>
allisonmahmood added a commit that referenced this pull request Nov 12, 2026
…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]>
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:core Touches the core area area:docs Touches the docs area area:integrations Company connections and integration implementations 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.

feat(portal): send Patchy a request or feedback, and see what you sent

1 participant