From 777951ca9ced14ae15f305009f7a9d6d94b2bb1a Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 21 May 2026 08:17:20 +1000 Subject: [PATCH] fix: clear resolveFailed on retry so the FAB recovers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolveAgents() throwing once (e.g. tenant id not ready on the first render) latched resolveFailed=true, and nothing ever cleared it — so the FAB stayed hidden permanently even after a later retry succeeded. Reset the flag at the start of each resolution attempt. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 2ca5ae4..8270e63 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -126,6 +126,10 @@ export function AgentDock({ useEffect(() => { let cancelled = false + // Clear any prior failure so a retry (e.g. tenant id arrives after + // the first render) gets a clean slate — otherwise the flag latches + // and the FAB stays hidden forever even once resolution succeeds. + setResolveFailed(false) resolveAgents() .then((list) => { if (cancelled) return