Repository navigation
feat(studio): align the keyboard shortcuts reference with the prototype - #2250
Merged
Merged
Conversation
peppescg
force-pushed
the
feat/studio-shortcuts-2206a
branch
from
October 11, 2026 14:57
310f67d to
d7cd759
Compare
peppescg
force-pushed
the
feat/studio-shortcuts-2206a
branch
from
October 11, 2026 15:48
d7cd759 to
6a50033
Compare
peppescg
force-pushed
the
feat/studio-shortcuts-2206a
branch
from
October 13, 2026 13:29
6a50033 to
c8ce54c
Compare
peppescg
force-pushed
the
feat/studio-shortcuts-2206a
branch
from
October 14, 2026 08:45
c8ce54c to
48f9bfd
Compare
kantord
force-pushed
the
feat/studio-shortcuts-2206a
branch
4 times, most recently
from
October 14, 2026 09:41
9d173be to
ea36d3f
Compare
Pin every shortcut's id, combo, group, description, while-typing scope, keycaps on both platforms, modal-scope filtering, and the set of ids the app dispatches through useShortcut, so the Shortcuts page alignment can prove it leaves every binding unchanged. Refs #2206 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Add a Conversation group for keys that act on the open conversation: Escape (handled by chat-escape.ts on chat surfaces) and expand details. - Flag component-owned rows as `fixed` (Escape, Enter, Shift+Enter) and Escape as `locked`; a test keeps `fixed` equal to "no useShortcut handler". - Word Enter and Shift+Enter live from the "Message during a run" preference through describeShortcut, matching resolveComposerAction. - Add the Image attachments help row, gated on the image capability, with a note that a chat's model may still decline images. - Restyle the page onto the prototype's cards: 3xl reading width, no icon tile, uppercase card headings, undivided rows, Escape notes below the groups so "see Escape order below" holds. Every binding, combo, scope, and dispatch order is unchanged. Refs #2206 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Refs #2206 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The note under "Features on this agent" says a chat's model may still decline images the deployment allows. It rendered even when the deployment had images off, so it described a row that was not there. Render it only when the Image attachments row shows. Refs #2206 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kantord
force-pushed
the
feat/studio-shortcuts-2206a
branch
from
October 14, 2026 09:41
ea36d3f to
4573833
Compare
kantord
approved these changes
Oct 14, 2026
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the keyboard-shortcuts slice of the settings, shortcuts, and About alignment (#2206, part of #2210). Part (b) covers the settings sections, About, and starter prompts, and closes the issue. This PR is stacked on #2233.
The Shortcuts page now uses the prototype's layout (
stack-08, prototypes #42). It adds a Conversation group,fixedandlockedflags on registry entries, and live Enter and Shift+Enter wording that follows the user's Message during a run preference. It also adds the Image attachments row to the features list.Every binding, combo, while-typing scope, modal-scope rule, and the dispatcher's scan order is unchanged. The "No regression" section below has the proof.
What changed
Registry (
shortcut-registry.ts)Conversation group: new, between Chats and Composer. It holds the keys that act on the open conversation:
close.esc), moved from General.chat-escape.tshandles it on chat surfaces only, and its row already said "the top chat layer".chat.expandDetails), moved from Chats.Scan order:
close.esckeeps its place in the array. Only itsgroupchanges, soShortcutProviderscans in the same order as before.fixedflag: marks rows that nouseShortcuthandler dispatches, because a component's own key handling owns them:close.esc(chat-escape.ts)composer.sendandcomposer.newline(the composer'sonKeyDown)A test keeps this flag equal to "not registered through
useShortcut".lockedflag: marksclose.esc, whose key is load-bearing. Studio has no rebinding UI, so the flag has no effect yet, as in the prototype.describeShortcut(shortcut, enterBehavior): words the two composer rows fromEnterSendBehavior:It mirrors
resolveComposerAction, and a test checks the two against each other. Every other row returns its registry description.Unchanged:
shortcutAllowedByScopes,matchesShortcut,shortcutWorksWhileTyping,keycaps, and the provider.Help rows (
help-features.ts)Image attachments is a new row. It's enabled by the deployment's
imagecapability, the same gatechat-workspace.tsxuses for a new chat. The hint points at the composer's image button, and a note under the rows says that a chat's model may still decline images.Page (
shortcut-reference.tsx)PageShellatmax-w-3xlwithspace-y-6rounded-xl border bg-card p-5cards with 14px uppercase muted headingsspace-y-2.5rowsgap-6 sm:grid-cols-2gridrole="status".sectionlabelled with its group name.Docs
user-docs/operating/studio.md: the shortcuts page follows the Message during a run preference.Visible change
Differences from the prototype
chat.details,debug.open,agents.toggle, andcomposer.modelmod+enter,shift+tab, andmod+shift+uEnterSendBehaviorhas two values, so there's noqueue-onlycase.No regression
Pinning tests
d067c9142adds a "registry pin" suite toshortcut-registry.test.ts, alone. It passed on the base (b7ca46bbe), and pins:shortcutAllowedByScopesfor every id: no scope, an empty scope, a self-only scope, and nested scopesuseShortcut, from a scan of the sourceOn this branch the suite passes unchanged except for one justified edit: the
groupofclose.escandchat.expandDetailsgoes fromGeneral/ChatstoConversation, as #2206 asks. Ids, combos, descriptions, while-typing scopes, keycaps, scope filtering, order, and the dispatched set are identical.Modified tests
shortcut-registry.test.ts: the twogroupvalues above.help-features.test.ts: the ordered id list gains"image"at the end, because the row is new. The other nine ids and their order are unchanged.Added tests
shortcut-registry.test.ts:fixedandlockedsetsfixedequals "not dispatched"describeShortcutfor both preferencesresolveComposerActionshortcut-reference.test.tsx:queueandsteerpreferencehelp-features.test.ts: the image row followsimage.All existing assertions are kept, including "every registry description appears on the page", the 44px return link, the offline and failure states, and disconnect refresh.
Gate counts
b7ca46bbe)310f67db3)Test evidence
task studio:check: passed. Biome, typecheck, and the generated-artifact check are clean.task studio:browser: 66 passed, on desktop and mobile Chromium.task docs: passed, withmatlatl --strictreporting 0 broken links.Screenshots
These were captured with a throwaway Playwright journey (Chromium, not committed) using offline BFF routes and a fixed clock (2026-09-25 12:30 UTC), in
Europe/Romeand en-US.studio.chat.composer.enterToSendbefore boot.b7ca46bbe). After is this branch (310f67db3).stack-08, shot with the shared prototype harness and the same clock, locale, and sizes, with its preference keymecatl-studio.enter-send-behavior.Each Studio tree was captured twice. The runs matched pixel for pixel, apart from 30 px of anti-aliasing in one after shot. Red boxes mark before/after differences. The prototype column is never boxed. Desktop composites are downscaled to 1600px wide.
These screenshots predate the restack onto main, which adds main's Scheduled card (Filter scheduled tasks,
/) after Chats, where main lists it; the prototype lists it last.Shortcuts page, first screen
Intended change, matches the prototype's layout: no icon tile, the prototype's intro sentence, and the shortcut cards first. The Escape notes move below the cards. Deliberate deviations: the "← Settings" link stays, and the title keeps Studio's shared 34px page-title size (the prototype uses 30px).
Dark and mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
Shortcuts page, whole page
Intended change, matches the prototype's card grammar:
rounded-xlcards, 14px uppercase headings, undivided rows, and a 3xl reading width. The new Conversation card holds Escape and expand details, the Image attachments row and the deployment note appear, and "Reading the numbers" uses the prototype's 128px label column. Deliberate deviations: Studio lists only the rows it implements (no Tools, Scheduled, approval-key, or transcript-scroll rows), shows only enabled features, and keeps its "Escape in a chat" card and legend wording.Dark and mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
Enter preference: Queue message (the default)
Intended change, matches the prototype's wording pattern: Enter reads "Send message — while the agent is replying: queue the message" and Shift+Enter reads "… steer the agent". Before showed only "Send message" and "Insert a new line". Deviation: Studio keeps "Send message" (the prototype says "Send"), and has no third
queue-onlyvalue.Mobile
Mobile, light:
Enter preference: Steer agent
Intended change, matches the prototype: the two composer rows swap to "steer the agent" on Enter and "queue the message" on Shift+Enter. Before is identical to the queue preference because the page did not read the setting.
Mobile
Mobile, light:
Review fixes
Fixes from the final regression and security review of the stack (stack #2227). Each one comes with a test that fails without the fix.
48f9bfd16fix(studio): show the image-decline note only with the image rowshortcut-reference.test.tsx: "notes that a chat's model may decline images only when the image row shows" (fails ondd96edcd4, passes on the fix)The note under Features on this agent ("the open chat's model may still decline images the deployment allows") now renders only when the Image attachments row does. With images on, the page is pixel-identical to before.
Gates on
574118489:studio:checkserver 195/195, web 997/997 (+1 test);studio:browser66 passed.Screenshots
Images off, desktop light: the note is gone.
Dark, mobile, and images on (unchanged)
Images on, desktop light (pixel-identical to before):
Re-verification (2026-10-11)
Re-verified at this head: no change needed.
Gates on the restacked head
48f9bfd16:studio:checkpasses (web 1,059, server 210 tests). At the stack top (#2256):studio:browser118 passed, 30 skipped; themecated --mockintegration suite 8 passed. The browser suite takes 5.3 minutes on a CI runner.Commit hashes cited earlier in this body predate the restacks; the current commits keep the same subjects. Hashes in Review fixes are updated.
Refs #2206
🤖 Generated with Claude Code