fix(provider): refresh models in background

This commit is contained in:
Aiden Cline 2026-06-11 20:30:14 -05:00
commit 72244e9e09
6 changed files with 112 additions and 37 deletions

View file

@ -77,6 +77,7 @@ export type Event =
| EventTuiSessionSelect2
| EventMcpToolsChanged
| EventMcpBrowserOpenFailed
| EventProviderModelsUpdated
| EventCommandExecuted
| EventProjectDirectoriesUpdated
| EventProjectUpdated
@ -1495,6 +1496,13 @@ export type GlobalEvent = {
url: string
}
}
| {
id: string
type: "provider.models.updated"
properties: {
providerID: string
}
}
| {
id: string
type: "command.executed"
@ -5138,6 +5146,14 @@ export type EventMcpBrowserOpenFailed = {
}
}
export type EventProviderModelsUpdated = {
id: string
type: "provider.models.updated"
properties: {
providerID: string
}
}
export type EventCommandExecuted = {
id: string
type: "command.executed"