The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Assert both stale-response and direct-refresh ownership fences
ethernetfb3abc1c3429
diff --git a/apps/desktop/src/store/local-models-surfaces.test.tsx b/apps/desktop/src/store/local-models-surfaces.test.tsxindex 538136aa46c..326778754fd 100644--- a/apps/desktop/src/store/local-models-surfaces.test.tsx+++ b/apps/desktop/src/store/local-models-surfaces.test.tsx@@ -40,6 +40,7 @@ import {checkLocalRuntimeUpdate,localModelsKey,localModelsOwner,+ refreshLocalModels,useLocalModelsOwner,useLocalRuntimeJobs,watchLocalRuntimeJobs@@ -334,6 +335,10 @@ it('discards late legacy completions and update notices without invalidating thereleaseStatus({ ...status, update_available: true })await updateawait tick()+ expect(queryClient.getQueryData<readonly LocalRuntimeJob[]>(localModelsKey(owner, 'jobs'))).toEqual([running])+ expect(queryClient.getQueryData(localModelsKey(owner, 'status'))).toBeUndefined()+ // Mutation acknowledgments can refresh directly, without a jobs response.+ refreshLocalModels(owner)expect(queryClient.getQueryState(key)?.isInvalidated).toBe(false)expect(notify).not.toHaveBeenCalled()})