fix: clear resolveFailed on retry so the FAB recovers
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user