Repository navigation
Studio: prompt edit box, menu heading chips, hub Run, files panel, loaded row menu - #15375
Conversation
…aded row menu - Editing a prompt opens a full-width box on the prompt's line, two lines tall at least, with the standard outline Cancel and dark Send pair. - The whole-pixel menu label spacer skips flex and grid labels, so the Sandbox, Learn more and embedding model chips sit at the right edge again. - Model hub Run uses the filled play glyph, drops the divider beside it, and gets a larger, centred label and more padding. - Chat with files: text-only Add files, tighter open padding, a pill when collapsed. - A model loaded by path keeps its row menu: Reveal, plus Pin for a cached download.
|
@codex review |
1 similar comment
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87065f3921
ℹ️ 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".
| cachePath={ | ||
| isLocal ? undefined : { repoId: checkpoint, variant: quant ?? undefined } | ||
| } | ||
| onReveal={isLocal ? () => revealLocalModel(checkpoint, entry.id) : undefined} |
There was a problem hiding this comment.
Route cached snapshot reveals through the cache endpoint
When a model is loaded by its Hugging Face snapshot path, the newly added Reveal action calls revealLocalModel, which posts to /api/hub/local/reveal. That endpoint's reveal_local_model_response only accepts inventory rows whose source is in LOCAL_DELETE_SOURCES, which explicitly excludes hf_cache (studio/backend/hub/services/models/common.py). Consequently, cached snapshot loads expose a Reveal action that returns 404 (“Model not found on device”) instead of opening the file manager. Handle cached snapshot paths through the cached-model reveal flow rather than the local-only endpoint.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 1168cba: a cached snapshot loaded by path now reveals through /api/models/reveal-cached-model with its repo and quant; only non-cache local files use the local reveal.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Studio: prompt edit box, menu heading chips, hub Run, files panel, loaded row menu
A batch of small Studio UI fixes.
Editing a prompt
Menu heading chips back at the right edge
#15232 added a whole-pixel spacer as
[data-slot="dropdown-menu-label"]::after. In aflex justify-betweenlabel that pseudo-element is a third flex item, so the trailing chip landed in the middle. The rule now skips flex and grid labels. Affected and fixed:Every other menu label is block-level and keeps the spacer.
Model hub Run
Chat with files panel
Loaded model row menu
The row's menu hides when it has no items. A model loaded by path, such as a cached download's
.gguf, offered neither Pin nor Reveal, so with one model loaded the menu vanished and only the settings gear showed. Path loads now get Reveal (the file itself), and a cached download also pins as its repo.Verification
npm run typecheck,npm test(14059 pass),npm run build.biome:checkerrors are only in files this PR does not touch (smoke-*.tsx,public/theme-boot.js,scripts/refresh-model-catalog-snapshot.mjs).menu-label-spacer.test.ts(fails on main's CSS),files-panel-shape.test.ts,hub-run-play-icon.test.ts, plus additions toedit-composer-attachments.test.tsandloaded-gguf-quant-marker.test.ts.Not covered here: Safari / WebKit layout, and the collapsed files panel with files attached (it keeps rounded corners, so the file chips are not clipped).