Skip to content

Studio: draw the command palette like chat search - #12511

Merged
shimmyshimmer merged 2 commits into
mainfrom
studio-command-palette-search-style
Oct 2, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
studio-command-palette-search-style

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Summary

The command palette (Cmd/Ctrl+P) now looks like Search chats (Cmd/Ctrl+K). Before, it used the generic command dialog: an inset input pill, square rows, a dimmed backdrop, and a position a third of the way down the window.

Changes

components/command-palette.tsx only. The shared components/ui/command.tsx is untouched, so the other command lists in Settings keep their look.

  • Surface: the same CommandDialog classes as chat search. It is centred, 635px wide (scaled), has rounded-3xl corners with the chat-search-surface shadow, and uses a transparent overlay.
  • Header: chat search's row (search icon, borderless input, close button, thin divider) replaces CommandInput. The close button uses common.close.
  • Rows: a small PaletteItem wrapper gives every row chat search's pill (rounded-full px-3 py-2.5, bg-muted when selected) with muted icons and 13px medium labels. Shortcut hints use the 11px meta size.
  • List: the same fixed 420px (scaled) height, capped at 60dvh, with the native thin scrollbar. Filtering no longer resizes the dialog.

Commands, shortcuts, filtering, the settings results and the hand-off to chat search are unchanged.

Testing

  • New tests/command-palette-search-style.test.ts checks that the palette's dialog classes match chat search's exactly, along with the shared header row and row style.
  • npm run typecheck is clean, and the full frontend suite passes (9778 tests).
  • Checked in dark mode with an empty query and with a filter that shows the Settings results.

The command palette used the generic command dialog: an inset input pill,
square rows and a dimmed backdrop, sitting a third of the way down. Chat
search, its sibling, is a centred rounded surface with a plain search row,
a close button, pill rows and a fixed-height list.

Give the palette the same surface, header row and close button, pill rows
with muted icons, and the same fixed-height list, so the list does not
jump as results filter. Commands, shortcuts and filtering are unchanged.
@danielhanchen

Copy link
Copy Markdown
Member

The red Chat UI Tests on head 1ed5c7c5 is the Windows lane runner, not this PR: the step's shell exited with code 3840 about a minute in, mid-run, with no failing step or test printed (last heartbeat: chat at extra turn 2, extra at Compare tab). The Linux Chat UI Tests (chat) and (extra) lanes on the same head passed, and this exit code does not appear in any other recent failed job, so a re-run of that job should clear it.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T05:57:56.161009Z 1ed5c7c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 1ed5c7c5e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Etherll Etherll self-assigned this Oct 2, 2026
The close button sits inside cmdk, whose root runs the highlighted row on
Enter. Tabbing to Close and pressing Enter navigated instead of closing.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@shimmyshimmer
shimmyshimmer merged commit 767a9f0 into main Oct 2, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-command-palette-search-style branch October 2, 2026 16:58
@Etherll

Etherll commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

The command palette (Ctrl/Cmd+P) now looks like Search chats: a centred 635px surface with a transparent overlay, a header with a search icon and a Close button, and pill rows. Commands, shortcuts, filtering and Settings results are unchanged.

What changed

  • The Close button sits inside the command list, which runs the highlighted row on Enter. Tabbing to Close and pressing Enter ran that row (for example, it jumped to Library) instead of closing. Enter on Close now only closes the palette.

On b03c5be, the frontend suite (9,779 tests), typecheck and eslint pass. Compared with the merge base in Chrome, Edge and Firefox on Linux, the new surface matches the description, Enter on Close closes without navigating, and filter, Enter and Escape behave as before. Safari was not run. The Search chats dialog has the same Enter-on-Close behaviour on main, and this PR does not change it.

CI: fork CI is still running (Etherll#124). Status: pending CI.

Command palette, empty query: before and after
Command palette filtered to "data": before and after
Before: merge base da07ae0. After: head b03c5be. Studio at 1280x800.

JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
* Studio: draw the command palette like chat search

The command palette used the generic command dialog: an inset input pill,
square rows and a dimmed backdrop, sitting a third of the way down. Chat
search, its sibling, is a centred rounded surface with a plain search row,
a close button, pill rows and a fixed-height list.

Give the palette the same surface, header row and close button, pill rows
with muted icons, and the same fixed-height list, so the list does not
jump as results filter. Commands, shortcuts and filtering are unchanged.

* Studio: keep Enter on the command palette close button

The close button sits inside cmdk, whose root runs the highlighted row on
Enter. Tabbing to Close and pressing Enter navigated instead of closing.

---------

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants