Skip to content

Studio: search chats, projects, files and models from tabs in chat search - #12564

Merged
shimmyshimmer merged 8 commits into
mainfrom
studio-search-tabs
Oct 3, 2026
Merged

shimmyshimmer merged 8 commits into
mainfrom
studio-search-tabs

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Chat search now has tabs for what you want to look through: All, Chats, Projects, Files and Models. An empty All tab shows your most recent items across every kind plus a few actions, and typing groups matches by kind.

Changes

  • Tabs. Switch by click, or with the left and right arrows when the caret is at the start or end of the query, so the arrows still move the caret inside it. Focus stays in the input.
  • All tab, empty query. Recents (the 5 newest items across kinds) and Actions: New chat, New temporary chat, Fine-tune a model, Generate an image and Generate a video, each with its shortcut. Actions run through the shortcut registry like the command palette, and typing filters them too.
  • All tab, typing. Matches are grouped under Chats, Projects, Files and Models, up to 5 each. A kind's own tab lists every match. Chats keep the existing two-tier match (user messages first, then the whole conversation).
  • What each row opens.
    • Chats open the chat. Compare and forked chats use the same icons as the Library's chat list.
    • Projects open the project in chat.
    • Files open the Library preview.
    • Models lists every complete download the Hub knows of (Hugging Face cache GGUF and safetensors repos, LM Studio, Ollama, Hermes, the models folder and custom folders), labelled by format or source, plus the Library's fine-tunes. A download opens in the Hub's On Device tab with the model selected; a fine-tune opens in the Library. Partial downloads are skipped.
  • Footer with keyboard hints: Close Esc, Change type ← →, Open ↵.
  • First-row highlight. The highlight stays on the first row until the user moves it, since kinds that load later can sort above the row cmdk picked first. A kept selection is cleared with that pin and only used while its row is still on screen.
  • Keyboard safety. Actions follow the live query, so Enter never runs one the input no longer matches. Enter on a focused tab only switches tabs instead of running the highlighted row.
  • Recency. Chats rank and show their age by last activity (updatedAt ?? createdAt, the latest of a compare pair), as the sidebar does.
  • Empty states. Files, Projects and Models show Loading until their source has loaded, instead of a false empty state.
  • Loading. The Library store loads on first open through a dynamic import. Downloaded models come from useHubInventory, which is already on the startup path through the model picker. fileKind, KIND_ICONS, isModelItem and the LibraryItem type are now exported from the Library index.
  • Strings. New strings live under shell.search, translated in every locale, so the strict parity check passes.
  • Startup budget. Adds about 8 KB raw / 2.7 KB transfer and fits the budget Re-measure the Studio startup budget after the managed engine options #12560 set (61.9 KB transfer to spare).

Testing

  • tsc -b is clean, npm test passes (9995 tests), and npm run i18n:check:strict passes.
  • New tests/chat-search-tabs.test.ts covers tab order, arrow stepping, token matching, Recents (including kinds not listed newest first), the Library store loading on use, and the keyboard, loading and recency fixes.
  • In a local build with seeded projects, chats, a compare chat, a Library file and four downloaded models:
    • Checked grouping while typing.
    • Switched tabs by click and with the arrows.
    • Opened a chat, a file (Library preview) and a downloaded model (Hub On Device tab, Run ready).

…arch

Chat search gains tabs (All, Chats, Projects, Files, Models), switched by
click or by the left and right arrows at either end of the query. An empty
All tab shows Recents across kinds and a few actions; typing groups matches
by kind. Models lists every complete download the Hub knows of plus the
Library's fine-tunes. The Library store loads on first open.

Raises the startup budget: main already measured over it, and the tabs and
their strings add 7.5 KB raw / 2.5 KB transfer.
@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-03T10:27:30.863287Z 99713fb Manual request
🔒 Security Review ✅ Completed 2026-10-03T10:07:54.835172Z 10361c0 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[bot]

This comment was marked as resolved.

@danielhanchen

Copy link
Copy Markdown
Member

Frontend build + bundle sanity on head 878a1bde fails the strict locale parity step: the 30 new shell.search.* keys this PR adds to en.ts are missing from every overlay (ar, de, fr, it, ko, ru, ...), and the step ends with Missing keys above. Add them to every overlay, or run without --strict to accept the English fallback. Adding them to each locale file should clear it.

# Conflicts:
#	studio/frontend/scripts/check-bundle-budget.ts
- Actions follow the live query, so Enter never runs one the input no
  longer matches.
- Enter on a focused tab only switches tabs; cmdk's root no longer runs
  the highlighted row.
- A kept selection is cleared with the highlight pin and must still be on
  screen, so the highlight never lands on a row that left.
- Files, Projects and Models show Loading until their source has loaded,
  instead of a false empty state.
- Chats rank and age by last activity, as the sidebar does, and Recents
  sorts across every row.
- Adds the shell.search strings to every locale.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@danielhanchen

Copy link
Copy Markdown
Member

The new Repo tests (CPU, studio) red (test_the_sidebar_action_geometry_still_follows_the_ui_scale) is main's since #12563, not this PR's; #12597 fixes the test. The locale parity point from my earlier comment is still this PR's.

Action availability is live, so an action that turns unavailable while
the dialog is open could stay the controlled selection after its row
unmounted, leaving nothing highlighted. The dialog now gates the action
list, firstKey and shownKeys on availability, and ActionItem only renders.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

- Enter on a stale auto-highlight (the deferred list not yet caught up)
  runs what the caught-up list will show first, instead of nothing.
- The compact list height counts projects, Library items, downloads and
  actions, not only chats, so a populated dialog never resizes while
  filtering.
- Model rows are searchable by the format label they show, so checkpoint
  rows match "Safetensors".
- Library models are labelled by how they were made (LoRA, GGUF export,
  ...), as the Library does, instead of all as fine-tuned.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 99713fb592

ℹ️ 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".

@shimmyshimmer
shimmyshimmer merged commit f388286 into main Oct 3, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-search-tabs branch October 3, 2026 10:29
danielhanchen added a commit that referenced this pull request Oct 3, 2026
#12562 (make carried rows a faintly frosted, darker copy) landed after this
branch was cut and restyles the shared ghost rule that #12499 introduced: it
relies on --row-ghost-surface and .model-picker-row-ghost, and edits
model-picker-pinned-drag-preview.test.ts, all of which the #12499 revert
removes. Keeping it without #12499 leaves .sidebar-row-ghost reading an unset
variable, so the conflict is resolved by dropping #12562's two hunks as well.
It should be re-opened together with #12499. #12563, #12564 and #12597 are kept.
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
…arch (unslothai#12564)

* Studio: search chats, projects, files and models from tabs in chat search

Chat search gains tabs (All, Chats, Projects, Files, Models), switched by
click or by the left and right arrows at either end of the query. An empty
All tab shows Recents across kinds and a few actions; typing groups matches
by kind. Models lists every complete download the Hub knows of plus the
Library's fine-tunes. The Library store loads on first open.

Raises the startup budget: main already measured over it, and the tabs and
their strings add 7.5 KB raw / 2.5 KB transfer.

* Studio: chat search review fixes and translations

- Actions follow the live query, so Enter never runs one the input no
  longer matches.
- Enter on a focused tab only switches tabs; cmdk's root no longer runs
  the highlighted row.
- A kept selection is cleared with the highlight pin and must still be on
  screen, so the highlight never lands on a row that left.
- Files, Projects and Models show Loading until their source has loaded,
  instead of a false empty state.
- Chats rank and age by last activity, as the sidebar does, and Recents
  sorts across every row.
- Adds the shell.search strings to every locale.

* Studio: keep unavailable search actions out of the selection keys

Action availability is live, so an action that turns unavailable while
the dialog is open could stay the controlled selection after its row
unmounted, leaving nothing highlighted. The dialog now gates the action
list, firstKey and shownKeys on availability, and ActionItem only renders.

* Studio: chat search Enter, compact height and model label fixes

- Enter on a stale auto-highlight (the deferred list not yet caught up)
  runs what the caught-up list will show first, instead of nothing.
- The compact list height counts projects, Library items, downloads and
  actions, not only chats, so a populated dialog never resizes while
  filtering.
- Model rows are searchable by the format label they show, so checkpoint
  rows match "Safetensors".
- Library models are labelled by how they were made (LoRA, GGUF export,
  ...), as the Library does, instead of all as fine-tuned.

* Studio: rank search projects by newest chat, index shown chat labels

* Studio: search project ages from all threads, hide infra models, skip IME arrows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants