fix: update model selector when a model is added in settings - #118
Open
robotyaga-gigachain[bot] wants to merge 2 commits into
Open
fix: update model selector when a model is added in settings#118robotyaga-gigachain[bot] wants to merge 2 commits into
robotyaga-gigachain[bot] wants to merge 2 commits into
Conversation
Sync the auth provider's shared LLM list after create/update/delete in LLM settings so the model selector updates without a page refresh. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Qessia
marked this pull request as ready for review
July 8, 2026 06:47
Collaborator
|
@open-swe Нужно также при обновлении текущей модели в настройках у пользователя, обновлять профиль, чтобы в ModelSelector подтягивалась текущая модель. |
Also call refreshUser after create/update/delete in LLM settings so the model selector reflects the current model without a page refresh. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Author
|
Готово. Добавил вызов Теперь при изменении текущей модели пользователя обновляется и профиль ( Коммит: a8c6819 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adding, editing, or deleting an LLM in Settings only refreshed the local list on the settings page, so the model selector in the chat input kept a stale list until the page was reloaded. The settings page now also refreshes the shared LLM list held by the auth provider (the same source the selector reads), so the selector updates reactively. Fixes issue #12.
Release Note
Newly added models now appear in the model selector immediately, without needing a page refresh.
Test Plan
Made by Open SWE