Skip to content

Add model_selector_open extension event#4824

Open
julien-c wants to merge 2 commits into
earendil-works:mainfrom
julien-c:model-selector-open-event
Open

Add model_selector_open extension event#4824
julien-c wants to merge 2 commits into
earendil-works:mainfrom
julien-c:model-selector-open-event

Conversation

@julien-c
Copy link
Copy Markdown
Contributor

New extension event fired when the interactive model picker opens. Lets extensions refresh provider state (e.g. re-fetch a remote model list) on demand.

Currently dispatched fire-and-forget so the UI doesn't block — handler updates land on the next picker open. Open question: should we await instead so the picker reflects refreshed data immediately, at the cost of briefly blocking the open on extension handlers?

julien-c and others added 2 commits May 20, 2026 20:24
Emitted (fire-and-forget) from showModelSelector before opening the
picker. Extensions can refresh provider state on this event; updates
land on the next picker open, not the current one.

Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co>
Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co>
@julien-c julien-c marked this pull request as ready for review May 20, 2026 18:28
@badlogic
Copy link
Copy Markdown
Collaborator

making it non-blocking is not the way to go here, i think. i have to review the llama.cpp PR first before deciding on this one. probably sometime next week, busy with lots of stuff :)

@julien-c
Copy link
Copy Markdown
Contributor Author

(another option is to keep the event non-blocking but make the modelRegistry UI reactive to changes in the model list)

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