Repository navigation
feat(sdk): patchy/hotkeys obeys a viewer's single-key shortcut setting - #1279
Conversation
|
Review (GPT 6.1 Sol, xhigh), on
On Mod+/ at window capture: Sol accepts reserving it for the guaranteed-opener contract. It necessarily breaks a patch's own Ctrl+/ handler, such as an editor's comment toggle, while a Verified:
|
…nce under way Review findings on #1279: - A call a client made before the bootstrap waited inside the shared transport, so closing the client still let it go out. Each call now waits for the bootstrap as its client, cancellably, and goes out only if the client is still open; once bound, it goes out as it is made. - A sequence continuing on Mod+/ owned the key before TanStack processed chords, so the sheet stayed shut. Mod+/ is now caught on the window outside that matching, and pending sequences start over as it opens. - Printable numpad codes (Star, Hash, ParenLeft, ParenRight) count as typing text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review round 2 (GPT 6.1 Sol, xhigh), on Round 1, all fixed:
New:
Verified:
|
Review round 2 on #1279: a call queued before the bootstrap waited through its own promise chain, so a call made right after the bootstrap, such as a route set from the route's first callback, could go out ahead of it. The postMessage transport now holds every call made before its port, from any client, query subscriptions included, in one queue it sends in order the moment the port arrives. A client that closed meanwhile still sends nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review round 3 (GPT 6.1 Sol, xhigh), on New:
Verified:
|
Review round 3 on #1279. The transport now follows one model, written above its queue: - Every call is queued, then dispatched. A client's close cancels its queued calls, which reject with unknown_outcome unsent; a dispatched call settles with its reply. - One FIFO per document holds every client's queued calls, subscriptions included, in call order. It drains in order when the port arrives, and anything new during a drain, re-entrant calls included, joins behind. Only an empty FIFO lets a call go straight to the port. - Tier 2 handler calls take their turn when made and are prepared from the bootstrap's descriptors as it comes. A mutation without the server's clock steps out of line and takes a new turn once the clock is known. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review round 4 (GPT 6.1 Sol, xhigh), on Round 3, all fixed:
Sol's probes all passed:
After 2,000 client lifecycles, the queue, pending replies, subscriptions, clock waiters and listeners all returned to zero. Focused vitest passes 92 of 92, the whole tier 1 browser suite 91 of 91, and CI's packed tier 2 smoke passes. The mutation-before-clock exception is described accurately and is acceptable.
Fixed in |
…nce under way Review findings on #1279: - A call a client made before the bootstrap waited inside the shared transport, so closing the client still let it go out. Each call now waits for the bootstrap as its client, cancellably, and goes out only if the client is still open; once bound, it goes out as it is made. - A sequence continuing on Mod+/ owned the key before TanStack processed chords, so the sheet stayed shut. Mod+/ is now caught on the window outside that matching, and pending sequences start over as it opens. - Printable numpad codes (Star, Hash, ParenLeft, ParenRight) count as typing text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
fdd7126 to
7ec220a
Compare
Review round 2 on #1279: a call queued before the bootstrap waited through its own promise chain, so a call made right after the bootstrap, such as a route set from the route's first callback, could go out ahead of it. The postMessage transport now holds every call made before its port, from any client, query subscriptions included, in one queue it sends in order the moment the port arrives. A client that closed meanwhile still sends nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review round 3 on #1279. The transport now follows one model, written above its queue: - Every call is queued, then dispatched. A client's close cancels its queued calls, which reject with unknown_outcome unsent; a dispatched call settles with its reply. - One FIFO per document holds every client's queued calls, subscriptions included, in call order. It drains in order when the port arrives, and anything new during a drain, re-entrant calls included, joins behind. Only an empty FIFO lets a call go straight to the port. - Tier 2 handler calls take their turn when made and are prepared from the bootstrap's descriptors as it comes. A mutation without the server's clock steps out of line and takes a new turn once the clock is known. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7ec220a to
f4ac4f5
Compare
d8822a4 to
7623689
Compare
|
Restacked onto Nothing changed beyond the rebase. Its own specs at its head ( CI: the first |
f4ac4f5 to
ee56f49
Compare
7623689 to
9c7d11d
Compare
|
Re-chained onto |
Acceptance: PASS with notesI checked this PR as part of the six-PR chain at #1301's head |
9c7d11d to
6d9e99b
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ee56f49 to
a677c2d
Compare
…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 |  |  | | Patchy's dialog |  |  | | A failed save |  |  | 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 | | --- | --- | --- | |  |  |  | |  |  |  | "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 | | --- | --- | |  |  | **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]>
…ey shortcuts (#1421) ## What changed This adds release 42's What's new entry, written from `1cd6d12`. It covers everything merged since release 41's `through` (`a25a9c5`), and sets the `patchy` release to `0.42.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228 | | New: Turn off single-key shortcuts | #1276, #1279, #1301 | | Fixed: Typing reaches the patch again | #1407, #1412 | | Fixed: Dialogs in patches keep your place | #1420, #1255 | | Behind the scenes: plainer facts for agents building patches | #1249, #1256, #1297, #1418 | | Behind the scenes: Patchy stores teams and audiences ahead of teams | #1416 | | Patch changes: Mod+/ and `client.close()` in patchy/hotkeys; single-key shortcuts can be off; Tab wraps in plain modal dialogs | #1279, #1301, #1420 | #1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302, #1413 and #1419 are test, CI and dev tooling and need no line. The teams bridge (#1416) ships alone in this release so teams (#1417) can follow in the next one with a release to roll back to that reads its data closed. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `7f93b91` (release 41) to this PR's merge.** No PR in the range is labelled `one-way`, and every Release impact answer says release 41 still works: - **#1217** adds migration `0037_feedback`, a schema release 41 never reads. **#1227** and **#1228** write into it. - **#1276** adds migration `0038_single_key_shortcuts`, a column with a default that release 41 never selects. - **#1416** adds migrations `0039_company_teams` to `0041_connection_audiences`, which hold tables that stay empty until teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 → head → 7f93b91 → head` on one set of data, and all four steps passed. - **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the shell. Patches built on this release carry a `shortcutSetting` manifest field that release 41 reads without refusing, and its shell names no frame, so every shortcut stays on. - **#1218** and **#1219** add CLI commands and an optional `feedbackHint` in `--json` failures. A CLI from this release refuses to publish to an older instance before sending anything, as any mismatched release does. - Everything else is skill text, docs, tests and CI. If this release misbehaves, roll back to `7f93b91` (release 41). Written by Claude Opus 5.5 in Claude Code, through T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
A viewer who uses speech input can be tripped by single-key shortcuts, and #1224 lets them turn those off.
patchy/hotkeysdidn't know about such a setting, and Mod+/ (the one sure way into the shortcuts sheet) could be taken by a narrower hotkey. Nowpatchy/hotkeysobeys the setting the shell will pass to the frame, its sheet has the setting row from the picked mocks, and Mod+/ always opens the sheet. Today's shell doesn't name the frame, so nothing changes until #1275 lands: every shortcut stays on and the row stays hidden.Closes #1274
Look at
The sheet in a stub shell that names the frame
patchy:shortcuts=on. It opens with Mod+/, the row asks the shell (here a stub that answers after a moment), and the sheet comes back on its row with the new state. While shortcuts are off, character shortcuts show inactive keycaps and say "key off" to screen readers; Ctrl chords and Mod+/ don't change.sheet-setting.mp4
Classification works on the parsed binding (
characterShortcutinhotkeyRules.ts). A binding is a character shortcut when every step types text with no Mod, Ctrl or Alt: Shift, Space,+, AltGr and dead-key characters, and the numpad's digits, operators and symbols (*,#, parentheses) count; named keys (including a NumLock-off numpad's) and mixed sequences don't.withinan element is exempt, butwithinbody or the root element isn't. Suppression is checked as each key arrives, in the chord callback and inallowStep, and never usesenabled: false. So a stopped hotkey stays listed, and the sheet's copy of a command keeps the classification of the place it came from.One transport per document, with one FIFO. Tier 1's
createClientused to make its own postMessage transport, while tier 2 and the file hooks shared the document's. On a page with both, two transports took the one bootstrap port, andclose()closed the port for everyone. Now every client takes a share of the document's transport (createClientTransport), and the transport follows one model, written in the doc comment above its queue:close()cancels it: it rejects withunknown_outcomeand is never sent. From the moment the transport starts sending it, serialization included, close no longer touches it, and it settles with the reply.Blobforfiles.put, can let a later call enter first. Beyond that, the one exception is a tier 2 mutation made before the server's clock is known (always so before the bootstrap): it goes out once the clock arrives, after calls made later. Onmain, order across the bootstrap followed promise timing instead. A tier 2 handler call made before the bootstrap went out behind other calls made after it, and a closed client's queued calls were rejected because it closed its own transport.close()never closes the port.patchy/hotkeysreuses the document's transport, or makes it as it evaluates, but only when the frame is named.Mod+/ is caught on the window, outside TanStack's matching. Inside that matching, a narrower hotkey or a sequence under way (such as
G Mod+/after G) claims the key before chords run. So the sheet listens for Mod+/ itself, in the window's capture phase, takes it there, and starts any pending sequence over as it opens.How it was verified
hotkeyRules.test.tscovers classification across every case in the issue.documentTransport.test.tsruns both tiers on one port: tier 1 closes, tier 2 keeps working, both close with zero consumers left, then both remount on the same port, and pagehide closes it.clientTransport.test.tscoversshortcuts.settingstill waiting after 40 s and then resolving. In each tier, it also covers writes and route sets queued before the bootstrap by a client that closes: they reject withunknown_outcomeand never reach the port, while another client on the same transport still sends. Over a realMessageChannel, a tier 1 and a tier 2 client queue a route set, a query subscription, a file discard and an insert, beside a closed client's insert. The route's first callback, as the bootstrap lands, sets a later path. The shell receives them in call order without the closed client's insert, and the route ends on the later path. Three more cases, over a real channel:/second, followed by a queued/first: the shell gets the insert, then/first, then/second;test/browser-tier1/hotkeys.spec.ts), on a stub shell that creates the iframe already named before inserting it:A,Shift+A,G Hand?do nothing, while Mod+K, Escape, awithinkey and Mod+/ work. Mod+/ opens the sheet even with focus inside a narrowerwithinMod+/ binding that stops propagation, and after G withG Mod+/registered. That G starts over as the sheet opens, so a following Escape is the page's own, notG Escape;aria-haspopup="dialog") and its inactive keycaps;shortcuts.settingwith{}. With the clock fast-forwarded, the stub answers after 40 s and the sheet reopens focused on the row, now On;hotkeystill leaves Mod+/ opening the sheet;8cc2fa0.pnpm format:check,pnpm lintandpnpm typecheckpass. The touched vitest files (transport, clients, query registry and the hotkeys suites) pass, 92 of 92. The whole tier 1 browser suite passes, 91 of 91, which includes the hotkeys file's 12. The packed tier 2 smoke, with its keyed mutation retry against a real server, passes too.2d15be2, the close-after-receipt test fails withpromise rejected "PatchyError: The runtime reply was lost." instead of resolving. The getter test fails withexpected [ 'route.set /second', …(2) ] to deeply equal [ 'tables.insert', …(2) ]. The tier 2 test fails withexpected [ 'route.set /second', …(1) ] to deeply equal [ 'server.call notes.count', …(1) ].9b142c2, Sol's repro failed withexpected [ 'route.set /second', …(3) ] to deeply equal [ 'route.set /first', …(3) ]. The final test fails there withexpected [ 'subscriptions.subscribe', …(4) ] to deeply equal [ 'route.set /first', …(4) ]. Removing just the subscription's place in the queue fails it too.bc2f59e, the queued-before-bootstrap tests fail withexpected [ undefined, 'tables.insert', …(1) ] to deeply equal [ undefined ]in tier 1 and[ undefined, 'files.discard', …(2) ]in tier 2. The sequence step fails atexpect(sheet).toBeVisible()after G, then Ctrl+/. Classification fails withexpected [ '[NumpadParenLeft]', …(3) ] to deeply equal [].toBeVisible(). With the deadline exemption removed, the 40 s test fails ontoBeFocused()(the sheet came back still Off), and the unit test fails withpromise rejected "PatchyError: The runtime reply was lost." instead of resolving. On the base, the shared-port test fails onexpect(port.closed).toBe(false).pnpm verifyatbc2f59e. format, lint, typecheck, synth, postgres-concurrency, tier2-smoke and browser passed.install,cli-smokeandinstall.test.tsstopped on "npm is not on PATH": this machine's/usr/bin/nodehas no npm beside it, and the installer is untouched. Two timeouts under load from other worktrees, inPatchesApi.test.tsandPgliteCompanyDatabases.test.ts, passed when rerun alone under Node and Bun.shortcuts.setting) is The shell turns on the single-key shortcut setting, with its dialog and the account menu switch #1275, and reading the stored value is Patchy stores each person's single-key shortcut setting #1273. So I couldn't test "Off stored under today's shell" with a stored Off. Today's shell names no frame, which is the same input.Release impact
Tick exactly one.
Patches already published keep the SDK they were built with and behave exactly as before. A patch rebuilt on this release changes in three ways:
HotkeySheet, ahead of every other hotkey. A customhotkeyprop now replaces only?. A page's own Mod+/ hotkey,withinan element or not, never fires while a sheet is mounted. At page level that was already true.client.close()leaves the document's connection open for the page's other clients. A client made after it reuses that connection instead of finding it closed.close(), instead of being rejected as lost.Calls a page makes before it connects to Patchy now reach the shell in the order they enter the transport, as described above. Tier 2 handler calls go out in their turn instead of behind later calls, except a mutation still waiting for the server's clock. The sheet's Mod+/ is no longer a hotkey registration, so
useHotkeyList()lists the sheet's?opener but not its Mod+/. A held Ctrl+/ toggles the sheet once, not on every key repeat. Under today's shell nothing else changes. A hotkeys-only page still opens no connection to the shell.Suggested
patchChangesline for the release:shortcuts.settingis shell-local and today's broker refuses it. The row that sends it only shows in a named frame, and nothing names one yet.Notes for #1275: the SDK sends
{ v, id, op: "shortcuts.setting", args: {} }and expects a result whosevalueis the authoritative boolean (true= on). It applies no deadline. The decoder belongs besidedecodeGeneratedDownloadin the broker, and the broker must never forward this operation. The frame needs itsnameset before insertion (parser-created or set beforeappend); setting it later doesn't reach a sandboxed document. A glossary entry for the setting is left for the docs pass there.Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.