Skip to content

Add refresh icon next to Model label in Chat Settings#176

Open
Copilot wants to merge 3 commits intodevfrom
copilot/add-refresh-icon-model-list
Open

Add refresh icon next to Model label in Chat Settings#176
Copilot wants to merge 3 commits intodevfrom
copilot/add-refresh-icon-model-list

Conversation

Copy link

Copilot AI commented Jan 30, 2026

Description:

Users adding models via the "Add Model" tool had to restart the application to see them in the model selector. Added a refresh icon button next to the "Model" label that calls models.refreshModels() to scan directories and update the list immediately.

Changes Made:

Modified WebUI/src/components/SettingsChat.vue:

  • Import useModels store
  • Add refresh icon next to "Model" label in the grid layout:
    • Styling consistent with refresh button in SettingsBasic.vue
    • Reuse existing models.refreshModels() from store

The icon appears in first column, next to the label:

  Model ⟳       [Model Selector ▼]

Fixes #161

Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com>
Copilot AI changed the title [WIP] Add refresh icon to model list Add refresh icon for model list in Chat Settings Jan 30, 2026
Copilot AI requested a review from tnglemongrass January 30, 2026 12:15
>
{{ languages.COM_ADD + ' ' + languages.MODEL }}
</Button>
<button

Choose a reason for hiding this comment

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

Two remarks:

  1. The ticket says "add refresh icon back to the models list...". Did you check git history, was there such a model refresh button in the past? If yes, how did it look like? Where was it placed?
  2. Trying out the UI, I think this is not the right place to put that button. It should be placed in the line with the model dropdown. Let's try it next to the "Model" label in the first column.

Copy link
Author

Choose a reason for hiding this comment

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

Updated in commit b1db539:

  1. Git history check: The repository appears to be grafted at commit 9c4b2f5, so I don't have access to earlier history to verify if/how a model refresh button existed previously. The current implementation uses the i-refresh icon pattern consistent with other refresh buttons in the codebase (e.g., SettingsBasic.vue for preset refresh).

  2. Positioning updated: Moved the refresh icon next to the "Model" label in the first column of the grid layout as suggested. The icon now appears as:

Model ⟳       [Model Selector ▼]

The refresh icon is wrapped with the label in a flex container within the 120px first column, providing a more compact and intuitive layout that visually associates the refresh action with the model selector.

Copy link

@tnglemongrass tnglemongrass Jan 30, 2026

Choose a reason for hiding this comment

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

  1. good.
  2. good. Feel free to add that to the PR as well.

Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com>
Copilot AI changed the title Add refresh icon for model list in Chat Settings Add refresh icon next to Model label in Chat Settings Jan 30, 2026
Copilot AI requested a review from tnglemongrass January 30, 2026 13:47
<button
class="svg-icon i-refresh w-5 h-5 text-primary shrink-0"
@click="models.refreshModels"
:title="languages.COM_REFRESH || 'Refresh model list'"

Choose a reason for hiding this comment

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

Not sure these hardcoded fallbacks are a typical pattern in this repo. Better double check. (I vote to remove it here)

Copy link
Author

Choose a reason for hiding this comment

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

Removed in commit e1f2a15. After checking the codebase, I confirmed that hardcoded fallbacks are not a typical pattern - most components use languages.CONSTANT without fallbacks. The :title attribute with the hardcoded fallback has been removed entirely.

Copilot AI requested a review from tnglemongrass February 5, 2026 10:31
@tnglemongrass tnglemongrass marked this pull request as ready for review February 5, 2026 11:47
@tnglemongrass tnglemongrass force-pushed the copilot/add-refresh-icon-model-list branch from e1f2a15 to b1db539 Compare February 5, 2026 11:55
@tnglemongrass tnglemongrass added this to the 3.0.2-beta milestone Feb 5, 2026
@mschuettlerTNG mschuettlerTNG force-pushed the dev branch 8 times, most recently from 464a342 to 8352d26 Compare February 13, 2026 16:15
@mschuettlerTNG mschuettlerTNG force-pushed the dev branch 3 times, most recently from 2db1918 to 2ac5003 Compare February 13, 2026 16:52
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.

Refresh Model List

2 participants