Skip to content

fix(sdk): a drag in or out of the shortcuts sheet's card no longer closes it - #1255

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/hotkey-sheet-scrim-drag-1136
Nov 11, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/hotkey-sheet-scrim-drag-1136

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

What changed

Pressing inside the shortcuts sheet's card and releasing over the scrim closed the sheet, so a viewer selecting a shortcut's label who dragged a little too far lost it. A press on the scrim released inside the card closed it too. Both make Chrome click the dialog itself, the common ancestor of where the press went down and came up, and the sheet took that click for a tap outside.

Now a click closes the sheet only when its press went down on the scrim (pointerdown targets the dialog itself) and came up there (pointerup's position hit-tests to the dialog with document.elementFromPoint). The release is hit-tested rather than read from pointerup.target: a touch captures its pointer, so every event of a touch targets the element its press went down on, wherever the finger lifts. A tap on the scrim still closes the sheet, by mouse or touch. Escape and the close button are untouched.

Closes #1136

Look at

  • packages/patchy/src/hotkeys.ts, the dialog's onPointerDown, onPointerUp and onClick: the whole fix.
  • Two new browser cases in test/browser-tier1/hotkeys.spec.ts, both with real input:
    • Mouse, a step in the local hotkeys test: a press on the last "Show shortcuts" label is dragged to the scrim's corner and released, then a press at the corner is dragged onto the label and released. The sheet must stay open after each. Then Escape closes it, and focus and the rich-text selection go back.
    • Touch, a new test in a hasTouch context using CDP Input.dispatchTouchEvent: a touch goes down 2px outside the card, moves 4px into it and lifts. The test waits until that touch's click has landed on the dialog, then requires the sheet to still be open. A touch tap on the scrim then closes it, and focus goes back to the ? button.

Mouse, red on main, the new step run before the fix:

✘  1 [chromium] › test/browser-tier1/hotkeys.spec.ts:970:1 › local hotkeys: … › a drag selecting a label out onto the scrim, or one from the scrim into the card, leaves the sheet open
    Error: expect(locator).toBeVisible() failed
    Locator: locator('#patch').contentFrame().getByRole('dialog', { name: 'Keyboard shortcuts' })
    Expected: visible
    Error: element(s) not found
      1209 |       await page.mouse.move(end.x, end.y, { steps: 4 });
      1210 |       await page.mouse.up();
    > 1211 |       await expect(sheet).toBeVisible();

That failure is on the card-to-scrim drag. With the two drags swapped it fails at the same line on the scrim-to-card drag, so main closed the sheet both ways.

Touch, red on 5127f2b, the first round of this fix, which read the release from pointerup.target:

✘  1 [chromium] › test/browser-tier1/hotkeys.spec.ts:817:3 › on a touch screen › a tap on the sheet's scrim closes it, and a touch from the scrim into its card doesn't
    Error: expect(locator).toBeVisible() failed
    Locator: locator('#patch').contentFrame().getByRole('dialog', { name: 'Tracker shortcuts' })
    Expected: visible
    Error: element(s) not found
      851 |     await touch(scrim, inCard);
      852 |     await clickedNext(["dialog"]);
    > 853 |     await expect(dialog).toBeVisible();

Green with the fix, the whole hotkeys tier:

✓  1 [chromium] › patchy/hotkeys fires in the published frame across fields, scopes, layouts and a Mac (868ms)
✓  2 [chromium] › a component's hotkeys are live from the commit that mounts it to the one that removes it (368ms)
✓  3 [chromium] › a conflict warning waits for every hook's update, so siblings swapping keys don't warn (294ms)
✓  4 [chromium] › the sheet opens by ? or its button, lists by group with its own rows last, runs what it lists and closes like a dialog (662ms)
✓  5 [chromium] › on a touch screen › a tap on the sheet's scrim closes it, and a touch from the scrim into its card doesn't (434ms)
✓  6 [chromium] › a page's element rules don't reach the sheet, which takes the page's font without a look and its button follows one (499ms)
✓  7 [chromium] › local hotkeys: the narrowest place wins, fields keep their keys, handled keys stand down, and the sheet runs a dialog's commands (1.1s)
7 passed (17.9s)

Case 4 still clicks the scrim's corner and expects the sheet to close. It also still closes the sheet with Escape and the close button, and focus goes back. The touch case passed 5 of 5 with --repeat-each=5.

How it was verified

  • pnpm exec playwright test -c playwright.tier1.config.ts --project=chromium test/browser-tier1/hotkeys.spec.ts: the mouse step red on main both ways and the touch case red on 5127f2b, as above; all 7 green with the fix.
  • pnpm format:check, pnpm lint, pnpm typecheck, pnpm typecheck:tests and vitest run src/hotkeys.test.ts in packages/patchy pass.
  • Not checked: Firefox and Safari. elementFromPoint and pointer events work the same there, but the SDK targets Chromium desktop and the tier runs Chromium only.

Hit every surface: none of the entries applied. No wire contract, command, flag, dev loop, vocabulary, migration, company resource, served page or package changed. The documented closing behaviour holds as written ("a click outside" in the patchy README and the HotkeySheet doc comment, "a tap outside" in the patchy-hotkeys skill), so no doc changed.

Release impact

Tick exactly one.

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

A patch carries the patchy/hotkeys it was built with. Patches already published keep the old sheet until they are republished with the CLI from the release that ships this. After that, a drag or touch into or out of the card leaves the sheet open, and nothing else changes.

patchChanges: none. A patch built before this builds the same. The only behaviour that differs is a press that starts or ends in the card, which no viewer means as a tap outside, so a refreshing agent has nothing to check.

  • What does a revert leave behind? Nothing: no schema, rows or contract. Patches published with this release keep the fix in their bundles.
  • Does the release before it still work with that? Yes.

Built by Claude Opus 5.5 (claude-opus-5-5) in Claude Code, through T3 Code.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area size:s Under 100 changed lines labels Nov 6, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review (GPT 6.1 Sol, xhigh), on 5127f2b: FAIL, with one finding.

  • P2, packages/patchy/src/hotkeys.ts line 725: a touch release is taken for a scrim release.
    • On a touch-capable Chromium desktop, press 2px outside the card, move 4px into it, and release. The sheet closes.
    • Touch's implicit pointer capture keeps pointerup.target on the dialog, so tap.current stays true even though the release is inside the card. Sol reproduced it with trusted CDP touch input in a sandboxed frame.
    • So the reverse-direction fix is incomplete for touch. Suggested fix: hit-test the release coordinates against the card, and add a touch regression case.

Verified:

  • The browser suite passes, 6 of 6.
  • Replaying the new mouse step against base and head with an in-memory source swap: both directions close on base and stay open on head, with no sleeps or timing tricks.
  • Behaviour unchanged across:
    • pen input;
    • touch cancellation;
    • a later tap after a cancelled press or a release outside the frame;
    • Enter and Space on the dialog;
    • right and middle buttons;
    • double clicks;
    • scrim taps with a selection;
    • Escape, native cancel, the close button and the command buttons;
    • reopening;
    • the sheet over a patch's own native modal.
  • Commands still restore focus and the selection before they run, and announcements stay available.
  • A direct native dialog.close() hides the dialog without clearing its owner state, as on the base.
  • The README, the hotkeys skill and the Release impact answers raise nothing further.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 2 (GPT 6.1 Sol, xhigh), on 148845d: PASS, with no findings.

  • The earlier P2 is fixed. Trusted CDP touch from the scrim into the card leaves the sheet open, and a later scrim tap closes it.
  • The test. The new touch test fails with 5127f2b's release logic swapped back in, and passes on this head. Its wait for the click is sound, with no sleeps. The browser tier passes, 7 of 7.
  • Chromium probes all passed:
    • scaled and CSS-zoomed frames;
    • page zoom;
    • scrolling the document and the sheet;
    • a release outside the frame;
    • the native ::backdrop;
    • a popover over the sheet receiving the release;
    • pen input.
  • Firefox passed the mouse and keyboard probes. Firefox touch and pen weren't exercised.
  • Everything checked in round 1 still holds.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

After the acceptance verdict on 148845d, cc921fa changes only the test, fixing the verdict's test note. The mouse step's second drag, from the scrim back into the card, fired no click in Chromium while the first drag's selection was still there, so it could pass without exercising the fix. Each drag now clears the selection and must click the dialog, as a scrim tap does, before the sheet is checked for still being open. With this head's hotkeys.ts the hotkeys browser tier passes, 7 of 7. With main's hotkeys.ts swapped back in, the step fails: the first drag clicks the dialog and the sheet closes. No product code changed.

@github-actions github-actions Bot added size:m 100-500 changed lines and removed size:s Under 100 changed lines labels Nov 6, 2026
@allisonmahmood
allisonmahmood force-pushed the fix/hotkey-sheet-scrim-drag-1136 branch from cc921fa to 5ddb13f Compare November 7, 2026 13:04
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Now the bottom of a stack (#1255 → #1256 → #1279 → #1276), rebased onto the latest main, so the shortcut work lands together with #1275.

@allisonmahmood
allisonmahmood force-pushed the fix/hotkey-sheet-scrim-drag-1136 branch from 5ddb13f to 8377331 Compare November 11, 2026 12:43
@allisonmahmood
allisonmahmood changed the base branch from main to t3/document-dev-page-browser-checks November 11, 2026 12:43
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Restacked onto main at 44acb65, in the chain main ← #1302 ← #1297 ← #1255 ← #1256 ← #1279 ← #1276 ← #1301. Every commit replayed cleanly: git range-diff shows each =, so the patch is byte-for-byte what was reviewed and accepted. The SDK's sheet (packages/patchy/src/hotkeys.ts and hotkeySheet.ts) is untouched on main since the base. The UI overhaul restyled Patchy's own pages, not the sheet a patch draws in its frame.

Nothing changed beyond the rebase.

Its own specs at its head (8377331), hotkeys.spec.ts: 13 of 13 passed. 7 of them ran in the headless shell, including both of this PR's cases. 6 ran in desktop Chromium, including the touch case. The mouse-drag step sits inside the local hotkeys test, which #1302 holds out of desktop Chromium for #1306. Run there anyway, that test passes every step through this PR's drag step, then stops at #1306's accessibility step (Cannot read properties of undefined (reading 'frame')), which comes after it.

CI: the first browser run failed in switcher.spec.ts, not in anything this PR touches. That run is "a signed-in person opens the switcher on a notice and leaves; signed out, it only claims the key". A /switcher.json request from the previous page landed after the test started listening; it was issued before the notice's own navigation request. It's rerunning.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-chained onto main at c44e63f, without #1302, in the chain main ← #1297 ← #1255 ← #1256 ← #1279 ← #1276 ← #1301. Replayed unchanged: git range-diff shows every commit =.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

I checked this PR as part of the six-PR chain at #1301's head 06476fe54aae64e52128c44709271f036fa2da59, which contains this head e9329afb5a00146fdb4f465d20eccde47f10dc5d, by Claude Opus 5.5 in Claude Code (T3 Code). Check 9 of the full verdict covers it, in desktop Chromium with the frame isolated and in the headless shell. With the mouse, pressing inside the sheet's card and releasing over the scrim left the sheet open, and so did the reverse, while a click on the scrim closed it. With touch, as CDP touch events, a drag from the card onto the scrim and one from the scrim into the card both left it open, and a tap on the scrim closed it. Notes: Its one red check, install (${{ matrix.os }}), comes from a duplicate CI run on the same commit that was cancelled before its matrix expanded; the sibling CI run on this head passed. pidgeon-suite is still waiting in Pidgeon live's account-wide queue.

@allisonmahmood
allisonmahmood force-pushed the t3/document-dev-page-browser-checks branch from 4035072 to c47d2f4 Compare November 11, 2026 17:28
Base automatically changed from t3/document-dev-page-browser-checks to main November 11, 2026 18:01
@allisonmahmood
allisonmahmood force-pushed the fix/hotkey-sheet-scrim-drag-1136 branch from e9329af to dbd9fea Compare November 11, 2026 18:02
@allisonmahmood
allisonmahmood merged commit 8ba4a65 into main Nov 11, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the fix/hotkey-sheet-scrim-drag-1136 branch November 11, 2026 18:15
allisonmahmood added a commit that referenced this pull request Nov 11, 2026
…h's sheet or the account menu (#1301)

## What changed

Speech input can type a letter that fires a patch's single-key shortcut.
#1224 lets each person turn those off. #1276 stores the choice and #1279
taught `patchy/hotkeys` to obey it, but nothing passed the choice to a
patch yet. Now Patchy's shell does:
- it names a viewer's patch frame with their setting;
- the shortcuts sheet's row opens Patchy's own dialog to change it;
- the account menu gets the same switch;
- a version built before the setting tells a viewer who turned shortcuts
off that its shortcuts still work.

This is the top of the stack `main ← #1297 ← #1255 ← #1256 ← #1279 ←
#1276 ← this`, and the six land together. #1302, CI's move to desktop
Chromium, waits on #1402 and lands later. It's restacked onto `main`
after the UI overhaul (#1332–#1354) and the switcher (#1298, #1304), and
ported to both. The restack comment says what changed beyond conflict
resolution.

Closes #1275
Closes #1224

## Look at

**1. The frame is named in the shell's static markup, not by a script
that creates it.** A parser-created iframe gets its `name` attribute
before its browsing context exists. So the server renders
`name="patchy:shortcuts=on|off"` on the existing static iframe, after
`main`'s `data-waiting`, and only for a company or local shell rendered
for its viewer (`shell.ts`, `Pages.ts`). A public shell is everyone's
document, a member's included since #1339, so it never carries one, and
`renderPatchWrapper` throws if asked to. Probed before choosing, in
Chromium and Firefox:

| Probe, a sandboxed frame whose `src` a deferred script sets | Chromium
| Firefox |
| --- | --- | --- |
| Static markup with `name`: first load, a reload after the value
changed, back after it changed | `off`, `on`, `on` | `off`, `on`, `on` |
| A `<template>` cloned by script, as the ticket's creator would | same
| same |

In desktop Chromium, where the frame runs in its own process, the patch
reads `window.name === "patchy:shortcuts=off"` on first load and after a
new version's Reload re-creates the frame. Static markup keeps three
things:
- **No inline script and no CSP change.** The shell still admits only
the switcher relay's hash.
- **Both mixed-release pairings work.** The markup is `main`'s plus one
attribute (and `data-shortcuts-note`), so an older broker mounts it
unchanged, and this broker mounts an older unnamed shell as before.
`render.test.ts` pins that the frame differs from the unnamed one only
by its name.
- **Every re-creation renders again.** A new-version reload is a fresh
server render.

**2. Patchy's dialog** (`packages/serving/src/shortcuts.ts`), from the
mock's direction C. A running patch's shell keeps its own pinned style
subset on `main` (`servedStyles`; the overhaul left patch shells alone).
So the dialog stays a `shell-scrim` over one `note-info` `note-float`,
with `glyph-sm`, the primary button and a quiet Cancel. The setting's On
or Off is a served `tag` after the question. The old `pill` isn't in
that subset, and `main`'s pin test would refuse it, so it's gone.

| | Desktop | Phone |
| --- | --- | --- |
| The sheet's row | ![The sheet with its Single-key shortcuts row
reading Off, and dashed
keycaps](https://github.com/user-attachments/assets/081d4f78-b123-40f3-a830-5ddcbd14fd2d)
| ![The sheet as a bottom sheet on a phone, its row reading
Off](https://github.com/user-attachments/assets/6b720ace-142a-4a84-a102-0deae6fd486e)
|
| Patchy's dialog | ![Patchy's dialog: Turn off single-key shortcuts in
every patch except public ones?, an ON tag, Turn off and
Cancel](https://github.com/user-attachments/assets/e90123d3-9e4f-47ec-babb-19534349f39a)
| ![The dialog centred on a
phone](https://github.com/user-attachments/assets/5e214a77-e990-4efe-a882-7f41efdd8cb9)
|
| A failed save | ![The dialog turned amber, saying Couldn't save.
Nothing changed., with Try
again](https://github.com/user-attachments/assets/ec24539c-2f35-4fd6-8a30-48d2f291b7c4)
| ![The failed save on a
phone](https://github.com/user-attachments/assets/d540007f-c910-4ac5-961b-b2b21c42181b)
|

The sheet is the SDK's, drawn in the patch's own frame by #1279, and
`main` hasn't touched it.

The copy and the failure pattern are as reviewed:
- The title says what the switch covers: "Turn off single-key shortcuts
in every patch except public ones?", or "Turn on …". The buttons are
**Turn off**, **Turn on** and **Cancel**.
- A refused save, a 200 without `{ value }` and an empty 200 all turn
the note `note-warn`, with the alert line "Couldn't save. Nothing
changed." and **Try again**.

The abuse rules, each a step of the browser spec:
- One dialog at a time.
- A question needs `navigator.userActivation.isActive` in the shell.
- However the dialog closes, it arms a flag: Turn off or Turn on,
Cancel, Escape, or the browser closing it, mid-save or not. The flag
holds new dialogs off until a 250 ms poll reads the old activation as
lapsed. So a request on the press that answered the last dialog gets the
value with no dialog, and only a fresh press opens another.
- Only an `isTrusted` click saves.
- Dismissing never waits. Cancel or Escape mid-save closes the dialog at
once and returns focus to the frame. The save keeps the one-dialog slot
until the route answers, and the operation then resolves with what the
route stored, or with the setting as it was if the save failed or timed
out after 35 s.
- While tier 2's tools are starting, a question gets the setting as it
is.
- **New with the switcher:** while Patchy's switcher is open, a question
also gets the setting as it is, as the starting cover waits for it. If
the switcher is open over the dialog when it closes, the dialog leaves
focus with the switcher, which hands it back.

**3. The account menu's switch**, a no-script form in `main`'s personal
menu: name, Your agents, the switch, Sign out. It posts the value it
switches to, with `return` set to the page. On the overhaul's component
set, the item is the switch: a `menu-item` with `role="switch"` and
`aria-checked`, the `keyboard` icon, and core's `switch` drawn at its
end in the item's state. Core's `fields` and `menus` chunks gained the
two selectors that draw it. The account menu is 248px wide, up from 220,
so the label stays on one line beside the switch.

| Before | Off | After the press: the receipt, and On |
| --- | --- | --- |
| ![The account menu with name, email, Your agents and Sign
out](https://github.com/user-attachments/assets/f1ba9ba2-2514-402a-a1bf-1f83643bbd7f)
| ![The account menu with the Single-key shortcuts switch
off](https://github.com/user-attachments/assets/171a45ef-a592-41a0-b810-09315d9013cb)
| ![The receipt Turned on single-key shortcuts, and the switch
on](https://github.com/user-attachments/assets/c4c0bfb2-71eb-4cfd-9661-dbf575eab48b)
|
| ![The phone menu
before](https://github.com/user-attachments/assets/e3c6daf1-7faf-4d7f-adc7-b80a9301fefc)
| ![The phone menu with the switch
off](https://github.com/user-attachments/assets/4c450fa9-8bea-4e0f-825c-66d74866f9ac)
| ![The phone menu after the press, the switch
on](https://github.com/user-attachments/assets/ea8ca452-812a-4804-9780-acc608bab291)
|

"Before" is this branch's page with the switch's form removed in the
browser, which is exactly `main`'s account menu. `ViewerApi.ts` reads
the form before the session, so a signed-out post that names `return`
goes back to that page, whose own door signs in there.

**4. D1's note.** The note shows to a viewer whose setting is Off, on a
version from 0.33.0 on that doesn't claim `shortcutSetting`, unless its
recorded imports leave out `patchy/hotkeys`.
- **Only a repo build claims `shortcutSetting: 1`**
(`MANIFEST_CAPABILITIES` in `@patchy/api`). A single HTML file may carry
an older SDK bundled inline, so it claims nothing.
- **Recorded imports refine D1's release rule.** A repo build without
`patchy/hotkeys` in `sdkImports` gets no note. A single file records no
imports, so the release rule decides: from 0.33.0 on, the note shows.
- The note reuses the new-version bar in the shared bottom stack: "This
patch's single-key shortcuts still work until it's updated." with a
quiet **Dismiss**, kept per patch in the shell's `localStorage`.

| Desktop | Phone |
| --- | --- |
| ![The note bar at the bottom over the 0.38 bundle: This patch's
single-key shortcuts still work until it's updated.
Dismiss](https://github.com/user-attachments/assets/456c09d9-7ca4-4d06-87d3-50df231178cb)
| ![The note as a bottom sheet on a
phone](https://github.com/user-attachments/assets/f312e473-d3c0-4e65-aa50-91a34fc7fca4)
|

**5. The flow**, desktop then phone. The sheet's row leads to Patchy's
dialog, Turn off brings the sheet back on its row reading Off, then the
account menu turns them back on.


https://github.com/user-attachments/assets/d604fe56-04cd-416c-83fa-42e4beebc2f0


https://github.com/user-attachments/assets/17f547e2-472b-4c2d-90ac-98884108c875

## How it was verified

- **Unit (vitest)**, with the rest of the stack's touched files: 35
files, 330 tests, plus core's style rules, gallery and served-style pin
(358 with `render.test.ts`):
- `render.test.ts`: the frame's name after `data-waiting` in static
markup, and that it is the only difference from an unnamed frame. A
public shell refuses a viewer's setting. `ignoresShortcutSetting`'s
cases.
- `html.test.ts`: the account menu's switch, its value, its `return`,
and escaping.
  - `ViewerApi.test.ts`: a signed-out form post goes back to its page.
- `devServer.test.ts`: each dev person's own setting, and the route,
which writes the file before it changes what shells read.
- `executeConfig.test.ts`: a repo build's manifest records
`shortcutSetting`.
- `served-styles.test.ts`: the served styles' digest moved on purpose,
for the one rule that keeps the dialog's tag whole.
- **The browser tier** (`test/browser-tier1/shortcut-setting.spec.ts`):
thirteen tests on published patches through the real shell and broker,
as reviewed. That includes the committed 0.38 bundle
(`hotkeys-0.38.html`), whose shortcuts still fire under this shell with
Off stored, with no row and with the note.

  | Engine | Result |
  | --- | --- |
| Desktop Chromium, `channel: "chromium"`, frame isolated, from a local
config | 13 passed |
  | Chromium headless shell, as CI runs it | 13 passed |

`hotkeys.spec.ts` and `focus.spec.ts` pass in both as well. Company
patches put the setting's row first in the sheet's Tab order. The
unnamed-frame test opens a public patch.
- **The whole tier 1 suite** at this stack's top (`06476fe`), as `pnpm
verify` runs it in CI's headless shell: 168 of 168. At the previous
push, with #1302's desktop project as well, it also passed 168 of 168.
- **The rollback rehearsal**, against the live release 41 (`7f93b91`):
`7f93b91 → 06476fe → 7f93b91 → 06476fe`, all four steps passed in 116 s.
It covers #1276's migration, and the live release serving a repo build
that this head's CLI wrote with `shortcutSetting`.
- `pnpm verify` at this head: format, lint, typecheck, synth,
postgres-concurrency, cli-smoke, install, tier2-smoke and browser pass.
`test` and `test (bun)` had 15 timeouts while the machine's load average
was near 30. All 11 files rerun alone pass (216 tests), as does Bun's
`PatchesApi` (63). The previous push's `pnpm verify` passed every step.
The served shell's page state is exempt from the page-markup rules in
`.oxlintrc.json`, and `shortcuts.ts` joins `stream-status.ts` and
`downloads.ts` there for the same reason.
- **Hit every surface.**
  - Wire contract: `docs/API.md` is regenerated and current.
- CLI: README, the `patchy-hotkeys` project skill and the capability
catalogue. No command, flag or exit code changed.
  - Dev loop: `docs/DEVELOPMENT.md` and the `patchy-dev-loop` skill.
- Vocabulary: the Companies and patchy glossaries, and
`docs/product.md`.
- Served pages: the `ui-consistency` spec names the menu's switch, the
dialog and note in the shell's exception, and `shortcuts.ts` in the lint
exemption.
  - Reverse states: the switch turns it back on from both places.
- Not applicable: migrations (#1276's), company resources and the repo
layout.
- **Not run on this head:** Firefox and WebKit. Firefox passed 12 of 13
before the port, the tier 2 test being Chromium-only. WebKit can't
launch here, and CI has no WebKit.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

The release that carries this carries the whole stack. Nothing needs
action. A viewer's shortcuts stay on until they turn them off, and
patches published before it behave as they did until rebuilt.

Suggested `patchChanges` line for the release, beside #1279's:

> patchy/hotkeys: a viewer can now turn single-key shortcuts off. Then a
page-wide hotkey whose every step types a character, such as `A`, `G H`
or `?`, fires nothing, while chords, named keys and hotkeys `within` an
element still fire. Label those commands so the sheet keeps them as
buttons, and write a key that belongs to one part of the page `within`
it. `window.name` carries the setting and is Patchy's: don't set it.

Landing note: #1276's migration is `0038_single_key_shortcuts`, above
#1217's `0037_feedback`. If another migration lands first, it renumbers.

- **What does a revert leave behind?**
- `shortcutSetting: 1` in the manifests of repo builds published
meanwhile. The release before reads stored manifests without refusing
extra keys, and in the rehearsal it served a version that carried the
field.
  - People's stored settings, from #1276.
  - Dismissed-note keys in browsers' `localStorage`.
- A CLI of this release refuses to publish to an older instance before
sending anything, as any mismatched release does.
- **Does the release before it still work with that?** Yes. Its shell
names no frame, so every shortcut is on, the sheet hides its row, and no
note shows.

Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through 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:cli Touches the cli area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(sdk): dragging from the shortcuts sheet onto its scrim closes it

1 participant