Skip to content

feat(sdk): keys for one element, text fields keep their keys, and the shortcuts sheet runs a dialog's commands - #1231

Merged
allisonmahmood merged 4 commits into
mainfrom
feat/local-hotkeys-1226
Nov 4, 2026
Merged

allisonmahmood merged 4 commits into
mainfrom
feat/local-hotkeys-1226

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

What changed

Agents moving patches onto patchy/hotkeys kept needing keys that only work in one place: arrows in a list, Enter and Escape in an inline editor, P 5 and A in a Create task dialog. Hotkeys couldn't be tied to an element, so they fell back to onKeyDown or faked it with enabled: focused. A page's Mod+A "Select all" also took a field's select-all, and a widget's own Escape also closed the dialog around it.

Now:

  • within: ref ties a hotkey to one element, SVG included. The narrowest place wins, the element, then the dialog, then the page, even over a page sequence that is under way. A key an element's sequence takes as a step is no step for a sequence further out. A key the narrower place doesn't take goes on to the next.
  • A text field keeps its keys, for chords and sequence steps alike, whatever whileTyping or within say: typing, composition and dead keys, and the editing keys. Other Mod chords and Escape still fire, and a hotkey within a one-line field takes its plain Enter, Escape, ↑ and ↓. whileTyping: false waits in every text field, even the one it is within.
  • A key something else already handled with preventDefault() fires no hotkey and steps no sequence. Keys Patchy took don't count, so G beside G H still fires.
  • The shortcuts sheet opens with ? and Mod+/, inside dialogs and from fields. It lists the commands for the current context, each a button. Running one closes the sheet, puts focus and the selection back, runs it and announces it. Escape and Tab are the sheet's at every step, so a command like G Escape runs from its button there.
  • patchy init's page saves on Enter through useHotkey("Enter", save, { within: field }), and Tab reads "Tab" off a Mac.

Closes #1226

Look at

Keys for one element. A listbox with within keys, an inline editor inside it, and the page's own Mod+A. In the editor, Ctrl+A selects its text; on the list, it selects every task.

keys-for-one-element.mp4

A dialog's commands from its fields. From the description field, Ctrl+/ lists Create task's commands. P then 5 runs Priority 5 and the caret comes back. Tab and Space run a command as a button, and Escape closes only the sheet.

a-dialog-s-commands-from-its-fields.mp4

The clips are Chromium on Linux, so ⌘ reads Ctrl. They film a demo page published to the browser tier's throwaway instance.

Review. GPT 6.1 Sol reviewed three rounds before this opened (6 findings, then 1, then none); its summary is in a comment.

The TanStack patch (patches/@[email protected], about 35 changed lines in hotkey-manager.js):

  • Sequence ownership is per target. A sequence in progress suppresses chords on its own target and further out, not on a target inside it.
  • A step a sequence takes, its first included, is recorded per event, and sequences on targets further out reset instead of taking it.
  • Ownership and advancement both ask allowStep, Patchy's pure per-step check. onStep tells Patchy a step was taken, which is when it consumes the key and marks it as its own.
  • Target widens to Element in the types, which the runtime already accepted.

Reverting each fix turns the browser tier red:

  • Global ownership again: the list's H loses to the page's G H.

    -   "list H",
    +   "page G H",
    
  • Sequences further out take a narrower step again: with H X within a panel, G H X also fires the page's G H.

    +   "page G H",
    
  • The eligibility probe marks the key again: a part inside a widget looks at H first, the widget then handles it, and the page's G H still completes.

    +   "page G H",
    
  • Only a whole Escape or Tab is the sheet's: Tab A swallows the sheet's first Tab, and G Escape closes the dialog under the sheet.

  • whileTyping: false ignored within the field: the editor's own Mod+K fires instead of passing to the page's.

    -   "page Mod+K",
    +   "editor Mod+K",
    
  • The announcer left in the body: over a native modal dialog, Chromium's accessibility tree has no status region. With it homed only when the sheet opens, a command that opens another modal, or closes its dialog and leaves it mounted, leaves no status region either.

    -   "Star",
    

Calls the issue didn't settle, made the simplest way, easy to change:

  • The sheet's own "Show shortcuts" rows, one for ? and one for Mod+/, stay plain rows, not buttons. Running "open the sheet" from the sheet would only reopen it. Pressing either key while it is open closes it.
  • When a command removes the focused field, the dialog gets tabindex="-1" if it has none, so focus can go to it.
  • "In text fields whileTyping: true changes nothing" is read strictly. From a field, only the listed keys leave: other Mod chords, Escape and a one-line field's own keys. So a bare F2 or Tab hotkey waits in a field even with whileTyping: true.

How it was verified

  • Checks: pnpm format:check, pnpm lint and pnpm typecheck pass on the head, rebased onto main.

  • Unit and type tests: hotkeys.test.ts, hotkeyRules.test.ts, hotkeySheet.test.ts and initProject.test.ts pass, 34 tests, plus SdkApi.test.ts.

    • They cover within against the published types, with HTML, SVG and Element refs, and refuse a non-element.
    • They cover every class of field key, with and without within, whileTyping: false within the field, read-only inputs and textareas, and Mod as ⌘ on a Mac.
    • They cover the duplicate warning by element and scope, the sheet's narrowest-first listing, and Tab's label.
    • Each was shown red by mutating the rule it covers.
  • The scaffold: the cliRepo, cliRepoBuild and cliRepoPublish cases pass. A new tier 1 repo typechecks, builds and publishes with the hotkey.

  • Browser tier: pnpm exec playwright test -c playwright.tier1.config.ts --project=chromium test/browser-tier1/hotkeys.spec.ts passes, 6 tests. The new test covers:

    • an editor inside a list inside the page, with each place's Enter and Escape;
    • a list's H against the page's G H under way, a panel's H X against it, an SVG chart's G H against the page's, and the page's G T unable to start in the chart;
    • typing and editing keys in text fields against hotkeys that ask for them, a textarea's Enter, a read-only field, and ⌘A on an emulated Mac;
    • a widget's prevented Escape, a prevented sequence step, and a widget that handles a key after a part inside it has looked at it;
    • an editor's whileTyping: false Mod+K passing to the page's;
    • Mod+/ on German and French layouts, and AZERTY's = not opening the sheet;
    • from a dialog's textarea, Mod+/ and P 5 by key and by button, with the caret and selection back where they were;
    • the rich text selection restored, the live region's text, and Tab through the commands;
    • Escape closing only the sheet, even after G with a G Escape command, and the dialog's own Shortcuts button;
    • a command that opens another dialog, and one that removes the focused field;
    • over a native modal dialog, the announcement as a status region in Chromium's own accessibility tree, also after a command opens a second modal and after one closes its dialog but leaves it mounted.

    The sheet test now checks that listed keys run, unlisted ones wait, and Tab goes round past a Tab A command.

  • The layout and narrowest-wins cases the issue lists under unit tests are in the browser tier. The unit suite runs in Node with no DOM, and these need real key events moving through elements.

  • Not checked:

    • real Mac and Windows keyboards, and real input methods; composition is CDP's;
    • Safari and Firefox;
    • screen readers. The live region is checked in Chromium's accessibility tree, not heard.

    pnpm verify is left to CI.

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required. The SDK changes how keys reach a patch's hotkeys, and a patch takes it when it next refreshes and publishes.

From a grep of our own published patches:

  • Mod chords keep working. Every whileTyping: true in them is on a Mod chord, mostly Mod+Enter to save or submit, or the zoom and font keys.

  • No bare Enter hotkey fires in a textarea today, and no patch lets a printable key fire in a field.

  • One dialog submits once instead of twice. Its form's own onKeyDown handles Enter, so ⌘↵ submitted from the form and again from the Mod+Enter hotkey. The hotkey now stands down.

  • Patches with HotkeySheet gain Mod+/ as an opener. Each sheet now lists only the commands where focus was, and runs them. None binds Mod+/ itself, and each mounts one sheet at a time.

  • A restyled sheet row may lay out differently. Each command row's label and keycaps now sit inside a <button>. A patch whose own CSS restyled .hotkey-row should check the sheet when it republishes.

  • What does a revert leave behind? Nothing on the server. Patches published with this SDK bundle it and keep it until they are republished.

  • Does the release before it still work with that? Yes.

patchChanges for the release that ships it:

patchy/hotkeys: a text field now keeps every key that types, composes or edits text, whatever whileTyping says, so a whileTyping: true single key, Shift or Alt chord no longer fires in one, and neither does Mod with A, C, X, V, Z or Y, or Backspace, Delete, the arrows, Home and End with any modifier; other Mod chords and Escape still fire. A key the page already handled with preventDefault(), such as a form's own Enter, fires no hotkey and steps no sequence. HotkeySheet also opens with Mod+/, inside dialogs too, lists only the commands where focus was, and runs them: check that the page doesn't bind Mod+/ itself and mounts one HotkeySheet, and that CSS restyling .hotkey-row still fits rows whose label and keycaps sit inside a button.

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

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review (GPT 6.1 Sol, xhigh), three rounds before the PR opened. Now PASS, with no findings.

  • Round 1, on baf1c1a: FAIL.
    • P1: an element's sequence prefix didn't beat a page sequence continuing (G H on the page with H X within an element fired both).
    • P1: the ownership probe marked an event consumed before a widget handled it.
    • P1: Escape and Tab still worked as command keys inside sequences while the sheet was open.
    • P2: within on the field itself bypassed whileTyping: false.
    • P2: a native modal hid the announcer.
    • P3: the SVG tabindex example in the skill.
  • Round 2, on 9e2e9b0: five of the six were closed. A P2 remained: the announcer was lost when a command closed a dialog that stayed mounted, or opened another modal.
  • Round 3, on 414922d: PASS.
    • All three modal reproductions now expose exactly one status region.
    • Rapid commands give one announcement each, with no stale region.
    • The hotkeys browser tier passes, 6 of 6.

Beyond the findings, Sol verified:

  • three-level nesting;
  • disabled inner sequences;
  • partial-sequence timeouts;
  • a widget preventing a first step or a later step;
  • abandoned prefixes after focus leaves;
  • the field-ownership matrix;
  • G beside G H;
  • German and French Mod+/, and AZERTY's exclusion;
  • ref resolution and registration reuse;
  • the openers;
  • the sheet's order: focus and selection back first, then the command.

Fix 1 changes one behaviour, and Sol judged it consistent with "the narrowest place wins": an element whose sequence starts with G takes G while it has focus, so the page's G T can't start there. The page's G chord still fires.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:xl Over 1,000 changed lines; review in multiple passes labels Nov 4, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked b24e33a (base d3da458) on the default pnpm dev instance (Patchy Dev), by Claude Opus 5.5 in Claude Code, through T3 Code.

I built a tier 1 patch from patchy-hotkeys/SKILL.md at this head alone, as an agent would. It has an accessible listbox with within keys and an inline editor inside it. The page has C T, G H, Mod+A and Mod+Z beside a one-line field and a textarea. Mod+A and a page Backspace set whileTyping: true on purpose. There's a native-modal Create task dialog with P 1–P 5, A, Mod+Enter and a Shortcuts button that calls openHotkeySheet(), and a due-date combobox whose raw listener prevents its own Escape. <HotkeySheet /> is mounted once. It typechecked and linted on the first try, then I published it to the local instance and drove it with Playwright Chromium as a signed-in person: 47/47 checks passed.

Done means

  • within ties keys to one element and the narrowest place wins, with no onKeyDown or enabled: focused: passed. The list's ↓, Enter, Escape and X fire only on the list. In the editor, Escape and Enter run the editor's alone, not the list's or the page's. On the list, Escape runs the list's and not the page's, and away from it the page's runs. Enter in the quick-add field adds through its within hotkey. The sheet opened from the list shows the list's Escape and hides the page's Escape.
  • No hotkey takes typing or an editing key from a text field: passed. Typing c t in either field or the dialog's title types it and opens nothing. With page Mod+A and Backspace set to whileTyping: true, these keys still edit the text and fire no hotkey: Ctrl+A selects the field (0–11), Backspace deletes, Ctrl+Z undoes, ←, Home and Shift+End move the caret. In the textarea, Enter, ↑, Ctrl+A and Backspace edit the text. On an emulated Mac, ⌘A and ⌘Z in a field reach the window unprevented with no hotkey, and ⌘A on the list runs Select all. Composition was left to the PR's CDP case.
  • A key a widget already handled never also fires a hotkey: passed. With the combobox's list open inside the dialog, Escape closes its list, the dialog stays open, and the dialog's Escape doesn't fire. ↓ and Enter pick a date with no hotkey.
  • ⌘/ from a dialog's field opens the sheet with that dialog's commands, each runs by key, click or keyboard, and the caret and selection come back: passed. From the description with "brave" selected, Ctrl+/ lists Close, Create, Assign and Priority 1–5 as buttons, plus the two "Show shortcuts" rows. It doesn't list the page's Create task, Go home or Select all.
    • P 5 runs Priority 5 and closes the sheet, and the selection is back at 6–11.
    • Tab to Priority 2 then Enter brings 2–4 back; Space on Priority 5 brings the caret back at 3; clicking Assign brings 0–5 back.
    • One role="status" region, inside the open modal, reads "Priority 5".
    • Unlisted keys wait while the sheet is open (G H, X). Escape closes only the sheet: the dialog stays and the selection comes back.
    • The dialog's Shortcuts button opens the same list, and Escape returns focus to the button. Ctrl+Enter still creates from the title field.
    • On an emulated Mac, ⌘/ and P 5 do the same and bring 1–3 back.
  • The skill teaches it, and a new patch's scaffold uses it: passed, with one note below. A fresh patchy init repo's src/App.tsx has useHotkey("Enter", save, { within: field }) and no onKeyDown. Published untouched, it saves a note on Enter twice in a row, and an empty Enter inserts nothing.
Browser checks (47)
PASS  quick-add: typing `c t ct` types it and opens nothing
PASS  notes textarea: typing `c t` types it and opens nothing
PASS  focused listbox: page `C T` waits (typeahead letters)
PASS  quick-add: Ctrl+A selects the field's text, page Mod+A (whileTyping: true) doesn't fire
PASS  quick-add: Backspace deletes text, page Backspace (whileTyping: true) doesn't fire
PASS  quick-add: Ctrl+Z undoes in the field, page Mod+Z doesn't fire
PASS  quick-add: ←, Home, Shift+End move the caret and selection
PASS  notes textarea: Enter newline, ↑, Ctrl+A and Backspace edit the text, no hotkey
PASS  listbox: Ctrl+A runs the page's Select all
PASS  listbox: ↓ runs the list's key
PASS  listbox: Escape runs the list's, not the page's
PASS  listbox: Enter opens the inline editor (list's Enter)
PASS  editor: Ctrl+A selects the editor's text, not every task
PASS  editor: Escape runs the editor's alone (not list's or page's)
PASS  editor: Enter runs the editor's alone (saves, doesn't reopen via list's)
PASS  listbox: X within the list fires
PASS  page: Escape outside the list runs the page's
PASS  page: G H fires
PASS  quick-add: Enter within the field adds the task
PASS  listbox: ? waits there (typeahead owns printable keys)
PASS  sheet from the list: opens with Ctrl+/, lists list's commands before the page's
PASS  sheet from the list: page Escape not listed twice (list's Escape shadows it)
PASS  sheet from the list: Escape closes it, focus back on the list, no list/page Escape
PASS  page C T opens Create task, focus in its title
PASS  dialog title field: typing `c t` types it, nothing opens
PASS  widget: its Escape closes its list and leaves the dialog open
PASS  widget: picks with ↓ and Enter, no hotkey
PASS  description: Ctrl+/ opens the sheet over the dialog
PASS  sheet lists the dialog's commands, as buttons, and not the page's
PASS  sheet lists its openers (Show shortcuts, ? and Ctrl+/)
PASS  P 5 by key: runs, closes the sheet, caret and selection back (6–11)
PASS  live region announces the command
PASS  one announcer, inside the open modal
PASS  Priority 2 by button (Tab, Enter): runs, caret and selection back (2–4)
PASS  Priority 5 by button (Space): runs, caret back at 3
PASS  Assign by click: runs, caret and selection back (0–5)
PASS  sheet open: unlisted keys wait; Escape closes only the sheet, dialog stays, selection back
PASS  dialog's Shortcuts button opens the sheet with the dialog's commands; Escape returns focus to it
PASS  dialog combobox: ? waits there (typeahead); Ctrl+/ opens
PASS  ? opens the sheet from a dialog button; Ctrl+/ while open closes it, dialog stays
PASS  title field: Ctrl+Enter (Mod chord) creates from the field
PASS  after the dialog: page G H fires again
PASS  no page errors
PASS  Mac: ⌘A in a field fires no hotkey and isn't prevented
PASS  Mac: ⌘Z in a field fires no hotkey and isn't prevented
PASS  Mac: ⌘A on the list runs the page's Select all
PASS  Mac: ⌘/ from the description opens the sheet; P 5 runs and selection comes back

47/47 passed

The PR's own tests

  • playwright test -c playwright.tier1.config.ts --project=chromium test/browser-tier1/hotkeys.spec.ts: 6 passed (24.9s).
  • vitest run src/hotkeys.test.ts src/hotkeyRules.test.ts src/hotkeySheet.test.ts src/initProject.test.ts in packages/patchy: 4 files, 34 tests passed.
  • CI on the head: every check passes except attio-live, which was still pending when this was posted and doesn't touch this change.

Golden journeys

  • Publish a page: passed on the default instance, not team. The CLI ran init, typecheck and publish for two tier 1 repos, and the dev persona opened each at its address in the patch frame. No other journey is touched: the diff changes no server, API, portal or migration, and no scenario patch imports patchy/hotkeys.

Rollback answers: they match the diff. There are no migrations, no apps/infra changes, no packages/api changes and no CLI flags. The SDK is bundled into each published patch, so a revert leaves nothing on the server, and the release before still works. one-way isn't needed. As with any additive SDK API, a repo that adopts within and later refreshes onto the older release would fail its typecheck. That isn't a production rollback concern.

Release impact: honest about patches built before. Published patches keep their bundled SDK until they are republished. The patchChanges sentence names what changes then: field keys, keys a widget already handled, and Mod+/ with commands that run from the sheet. It misses one shape change, in the notes below.

Not run

  • The PR body's grep of published patches: it reads production, which this run doesn't touch.
  • Real Mac and Windows keyboards, real input methods, Safari and Firefox, and a screen reader. The Mac checks override navigator.platform in Chromium, and the live region was read from the DOM.
  • A page sequence under way against a narrower H, and within an SVG chart: not driven by hand, but covered by the PR's browser case, which passed here.

Notes

  • The skill left me guessing about ? on a list. It says a focused role="listbox" keeps "its arrows and letters for typeahead", and that ? opens the sheet. On the focused listbox, and on a non-editable role="combobox", ? does nothing: TanStack's typeahead rule takes every printable key, ? included. Only Mod+/ or the ? button opens the sheet there, and the list is exactly where the sheet's "list's commands, then the page's" view matters. This is upstream behaviour the PR doesn't change. One line would fix it: "a focused listbox or combobox keeps every printable key, ? included, so Mod+/ opens the sheet there". The skill never mentions a combobox.
  • Restyled sheets change on republish, and Release impact doesn't say so. A command row's label and keycaps now sit inside button.hotkey-command within li.hotkey-row. A patch that restyled .hotkey-row or .hotkey-label as direct children may lay out differently. The skill points restyling at the hotkey-* classes but doesn't name hotkey-command.
  • Everything else I built from the skill text worked first time, including the HotkeyBinding<"P 1" | … | "P 5">[] table and the native <dialog> with its Escape registered inside the scope. The inline-editor snippet doesn't say to focus the editor when it opens; select() did that here.

The sheet opened with Ctrl+/ from the dialog's description: only Create task's commands, then its openers

The sheet opened with Ctrl+/ from the listbox: the list's commands, then the page's

@allisonmahmood

Copy link
Copy Markdown
Owner Author

After the acceptance verdict on b24e33a, 1763b28 changes only the hotkeys skill, the note that verdict raised: a focused listbox, menu, tree or non-editable combobox keeps every printable key for typeahead, ? included, so only Mod+/ or the ? button opens the sheet from there. That's TanStack's rule (getOwnedKeys), which this PR doesn't change. SdkApi.test.ts passes. Release impact now names its other note: a row restyled through .hotkey-row now has a <button> inside it.

allisonmahmood and others added 4 commits November 4, 2026 08:35
…ld, and a sheet that runs a dialog's commands

Agents moving patches onto patchy/hotkeys needed keys that only work in one
place, so they fell back to onKeyDown or `enabled: focused`. A page's Mod+A
took a field's select-all, a widget's own Escape also closed its dialog, and
a dialog's single keys couldn't be reached from its fields.

- `within: ref` ties a hotkey to one element, SVG included. The narrowest
  place wins: element, then dialog, then page, even over a page sequence in
  progress. A key the narrower place doesn't take goes on.
- A text field keeps the keys that type, compose or edit text, for chords and
  sequence steps alike, whatever whileTyping or within say. A hotkey within a
  one-line field takes its plain Enter, Escape, up and down.
- A key something else already preventDefault-ed fires no hotkey and steps no
  sequence. Patchy consumes matched chords itself; the TanStack patch gains a
  per-step check and per-target sequence ownership.
- The sheet opens with ? and Mod+/, inside dialogs too, and lists the commands
  for the current context as buttons. Running one closes the sheet, puts focus
  and the selection back, runs it and announces it.
- `patchy init`'s page saves on Enter through a within hotkey, Tab reads "Tab"
  off a Mac, and the hotkeys skill, README and glossary say all of this.

Closes #1226

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the sheet's own keys

- A step a narrower sequence takes, its first included, is no step for a
  sequence further out: the TanStack patch records the innermost target
  that took the event, and sequences further out reset instead of taking
  it. Page `G H` beside `H X` within a panel no longer completes on H.
- Eligibility is pure. Patchy marks an event as its own only when a chord
  or a sequence step actually takes it, through the patch's new `onStep`,
  so a widget that handles a key after an inner hotkey's look still stands
  every hotkey down.
- The sheet keeps Escape and Tab at every step: a command such as
  `G Escape` or `Tab A` runs from its button alone while it is open.
- `whileTyping: false` holds a hotkey back in every text field, even the
  one it is `within`.
- The announcer is a status region that moves into the modal `<dialog>`
  around where focus was, so a native modal doesn't make it inert.
- The skill's SVG example writes `tabindex={0}`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…f a modal

A command run from the sheet could close the native dialog it came from
and leave it mounted, close a nested one, or open another modal. The
announcer stayed where the sheet had put it, inside a hidden dialog or
under the new modal, so Chromium's accessibility tree had no status region.

Once the command has rendered and focus has settled, the announcer's home
is the modal dialog around focus, or the body. When that differs from
where it is, it moves there and says the label again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the feat/local-hotkeys-1226 branch from 1763b28 to 04af1b3 Compare November 4, 2026 07:35
@allisonmahmood
allisonmahmood merged commit 1acc968 into main Nov 4, 2026
24 checks passed
@allisonmahmood
allisonmahmood deleted the feat/local-hotkeys-1226 branch November 4, 2026 07:46
allisonmahmood added a commit that referenced this pull request Nov 4, 2026
…ges publish (#1241)

## What changed

This adds release 36's What's new entry, written from `1acc968`. It
covers everything merged since release 35's `through` (`dd0e2ec`), and
sets the `patchy` release to `0.36.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

| Change | PRs |
| --- | --- |
| Improved: shortcuts work where you use them (keys for one part of a
patch, the closest wins, text boxes keep their typing keys) | #1231 |
| Improved: the shortcuts sheet shows what works where you are (Ctrl+/
and ⌘/ open it, its commands run, it opens from a patch's menu and in
view on a narrow screen, keeps the look, spells keys out away from a
Mac) | #1231, #1181, #1178, #1180, #1177 |
| Fixed: keys pressed while a patch opens reach it | #1183 |
| Fixed: pages styled with Tailwind 4 publish, and a look with the same
rule saves | #1191 |
| Fixed: an old copy of a patch no longer replaces newer work
(**Breaking** for such a copy: it needs `patchy pull` or one
`--allow-behind` publish) | #1179 |
| Improved: your agent can check a publish before sending it | #1188 |
| Improved: your agent hears what changed when it updates a patch |
#1186, #1185 |
| Fixed: your agent stops chasing false alarms (`pnpm install` exit
codes, `manifest.json` bytes, the description notice, a copied dev
record) | #1176, #1174, #1175 |
| Behind the scenes: fuller hotkeys instructions for agents; fewer
redraw costs for patches with many shortcuts | #1182, #1187 |

`patchChanges` has three sentences for the agent refreshing a patch
across this release:
- #1231's, from its PR: text fields keep their keys, `preventDefault()`,
and the sheet's Mod+/ and `.hotkey-row` buttons.
- The sheet's dialog renders in `document.body`, and element-only page
rules don't reach it (#1178, #1180). Its own row lists last (#1181). The
hotkey label helpers take only valid literals (#1177).
- Publish's `unknown_base_version` (#1179).

It also rewords release 33's "Press ? to see every shortcut a patch
has". That was true only for a patch that mounts the shortcuts sheet, so
it now says a patch *can* list its shortcuts.

The rest get no line:
- #1206, #1207, #1209 and #1220 are `pnpm dev eval` tooling.
- #1222 is release 35's own entry.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`, and release 33's reworded line.
- **Rollback safety, from the live commit `d28fdd0` (release 35) to
`1acc968`:**
- #1191 is labelled `one-way`. Its Release impact: a company look
published after this release with a nested `@supports` condition stays
stored after a revert. Release 35 refuses any bundle carrying it, so
repo publishes in that company would fail until an admin runs `patchy
look restore` to an earlier revision. Pages and Tailwind 4 repos already
published stay published.
- #1183 is the only change to what the server serves browsers: the
shell's script, under a digest-named URL. Its revert leaves nothing
behind.
- The hotkeys PRs change `patchy/hotkeys`, which patches bundle when
they are built. Published patches keep their copy.
- The CLI PRs change what a CLI writes and refuses. Release 35 reads
everything they leave behind: #1176's `allowBuilds` entry, #1174's
indented `manifest.json`, and the `version` recorded by an
`--allow-behind` publish.

**Rollback line:** If this release misbehaves, roll back to `d28fdd0`
(release 35). First check that no company's look has a nested
`@supports` condition, and `patchy look restore` an earlier revision
where one does (#1191).

## How it was verified

- **Tests.** `whatsNew.test.ts`, `WhatsNewPages.test.ts` and
`schemas.test.ts` pass (22 tests), and `bun fmt` passes on the changed
files.
- **Facts.** The sheet's new `document.body` home and its element-rule
reset were checked against `hotkeys.ts` and `hotkeySheet.ts` on main.
- **Deploy state.** I pinned the live commit from `/healthz/deep`:
`d28fdd0` (release 35). The Deploy run updated last succeeded, and none
is unfinished.

## Release impact

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

Text and version numbers only. Like every release, the `0.36.0` bump
tells CLIs and patch repos installed before this deploy to upgrade.

- **What does a revert leave behind?** Nothing.
- **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.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area area:server Touches the server area size:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local hotkeys: keys for one element, editing keys stay with the field, and a sheet that runs commands in dialogs

1 participant