Skip to content

fix(studio): show local file path tooltip for Hub-tab local models - #6715

Merged
Imagineer99 merged 2 commits into
unslothai:mainfrom
mvanhorn:fix/6382-studio-local-model-path-tooltip
Jun 29, 2026
Merged

Imagineer99 merged 2 commits into
unslothai:mainfrom
mvanhorn:fix/6382-studio-local-model-path-tooltip

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Summary

Local models shown in the Studio model picker's Hub tab now reveal their on-disk file path on hover, matching the Fine-tuned rows that already do this.

The shared ModelRow component already accepts an optional tooltipText prop and renders it in a Tooltip, and the Fine-tuned/LoRA row passes a two-line block (model name plus address). The three Hub-tab local sections - Custom folders, LM Studio, and Local models - each map over a LocalModelInfo that carries a required path, but none of them passed tooltipText, so hovering a local model surfaced no path.

This change adds a small localPathTooltip(name, path) helper that returns the same two-line JSX the Fine-tuned row uses, and wires it into those three local ModelRow call sites. No new props, types, or backend calls are added.

Why this matters

Issue #6382 reports that hovering a Fine-tuned model shows its local address, but hovering a local model that appears in the Hub tab shows nothing, so there is no way to tell where it lives on disk. This restores consistency: any locally-stored model reveals its path on hover regardless of which list renders it.

This is a partial fix scoped to the local-model path tooltip (the first part of the report). The separate request for a distinct online/available indicator on hub models is a UI-design enhancement left to its own change.

Testing

  • tsc -b (typecheck): no new errors in pickers.tsx (pre-existing errors in unrelated files come from optional dependencies not installed in this environment).
  • biome check on the file: no new diagnostics introduced (error/warning counts unchanged versus base).
  • Manual hover check: Custom-folder, LM Studio, and Local models rows now show name plus filesystem path; the Fine-tuned row tooltip is unchanged; online-only hub rows are untouched.

Refs #6382

AI was used for assistance.

Local models in the Studio Hub tab (Custom folders, LM Studio, and
Local models sections) did not reveal their on-disk path on hover,
unlike the Fine-tuned rows which already do. Each of these rows maps
over a LocalModelInfo with a required path, so pass tooltipText built
from the model name and path via a small shared localPathTooltip
helper, matching the existing FT-row tooltip format.

Refs unslothai#6382

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a helper function localPathTooltip to render a tooltip displaying the model's name and file path. This tooltip is integrated into several ModelRow components within the HubModelPicker to show the local path of the models. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Imagineer99 Imagineer99 self-assigned this Jun 29, 2026

@Imagineer99 Imagineer99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Tested and confirmed the tooltips show the correct folder as expected, matches parity with finetuned tab.

CI passes here, merging.

@Imagineer99
Imagineer99 merged commit 54b95fb into unslothai:main Jun 29, 2026
36 checks passed
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.

2 participants