Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: only announce pull recovery for refs it can actually finish
[._.]/ Adam Eivy48118fb0234c
diff --git a/server/services/ollamaManager.js b/server/services/ollamaManager.jsindex 2bfbb633f7..158bf69a86 100644--- a/server/services/ollamaManager.js+++ b/server/services/ollamaManager.js@@ -699,7 +699,10 @@ async function pullModel(modelId, onProgress) {// The weights may all be on disk and only Ollama's manifest write missing —// retrying just re-races the same deadline, so finish the pull ourselves.- if (isPullDeadlineError(lastError)) {+ // Gated on the ref being one we can actually finish, so a deadline against a+ // non-HF registry doesn't flash a "finishing install…" banner for a recovery+ // that has nowhere to fetch from.+ if (isPullDeadlineError(lastError) && huggingFaceRegistryBase(parseOllamaModelRef(modelId))) {if (typeof onProgress === 'function') {onProgress({ status: 'finishing install from downloaded files…', percent: null, finalizing: true })}diff --git a/server/services/ollamaManager.test.js b/server/services/ollamaManager.test.jsindex 32791e683b..7eb747af02 100644--- a/server/services/ollamaManager.test.js+++ b/server/services/ollamaManager.test.js@@ -481,6 +481,21 @@ describe('ollamaManager HF pull recovery', () => {expect(result.success).toBe(false)expect(result.error).toBe('context deadline exceeded')})++ it('does not announce a recovery for a non-HF ref it could never finish', async () => {+ // registry.ollama.ai has no OCI endpoint PortOS can complete a pull from,+ // so a deadline there must fail plainly — no "finishing install…" banner+ // for work that has nowhere to fetch from.+ stubPullThenRegistry()+ const { pullModel } = await loadManager()+ const onProgress = vi.fn()++ const result = await pullModel('gpt-oss:20b', onProgress)++ expect(result.success).toBe(false)+ expect(result.error).toBe('context deadline exceeded')+ expect(onProgress).not.toHaveBeenCalledWith(expect.objectContaining({ finalizing: true }))+ })})})