mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
perf(mobile): skip model projection after discovery owner retires (#35540)
* perf(mobile): skip model projection for retired discovery owners * test(mobile): drop spy-only model discovery projection test Existing hook suite already covers stale-result exclusion; the new file only asserted a namespace spy call. --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -68,8 +68,11 @@ export function useMobileNativeChatModelDiscovery(args: {
|
||||
let cancelled = false
|
||||
void runRpcOperation(client, discoverModels, { worktree: `id:${worktreeId}`, agentId: agent })
|
||||
.then((discovery) => {
|
||||
if (cancelled) {
|
||||
return
|
||||
}
|
||||
const models = discovery ? catalogModelsFromModelDiscovery(agent, discovery) : null
|
||||
if (!cancelled && models !== null) {
|
||||
if (models !== null) {
|
||||
setResult({ client, scope, models: mergeDiscoveredCatalogModels(agent, catalog, models) })
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user