tinyhumansai/openhuman · error

[ai-panel] backfill poll failed

Error message

[ai-panel] backfill poll failed

What it means

A periodic memory-tree backfill status poll failed while the backfill modal was open: the memoryTreeBackfillStatus call inside the 2s interval rejected. A single failed poll is tolerated (the modal stays open with the last known pending count); the serialized inFlight guard prevents overlapping requests, and the next tick retries. Only sustained failures leave the modal showing a stale pending count.

Source

Thrown at app/src/components/settings/panels/useReembedBackfillModal.ts:71

    if (!reembed.open) return;
    let cancelled = false;
    // Serialize polls — if a status call takes >POLL_MS, skip the next tick
    // rather than overlapping requests.
    let inFlight = false;
    const id = window.setInterval(() => {
      if (inFlight) return;
      inFlight = true;
      void (async () => {
        try {
          const st = await memoryTreeBackfillStatus();
          if (cancelled) return;
          if (!st.in_progress) {
            setReembed({ open: false, pending: 0 });
          } else {
            setReembed(r => ({ ...r, pending: st.pending_jobs }));
          }
        } catch (e) {
          console.warn('[ai-panel] backfill poll failed', e);
        } finally {
          inFlight = false;
        }
      })();
    }, POLL_MS);
    return () => {
      cancelled = true;
      window.clearInterval(id);
    };
  }, [reembed.open]);

  return { reembed, handleSave, dismissReembed };
}

View on GitHub (pinned to 7491200858)

Solutions

  1. No action for isolated failures — the next 2s poll retries automatically
  2. If the modal's pending count freezes, check core health; closing and re-triggering the modal restarts polling
  3. Sustained failures indicate an unhealthy core/memory service — inspect core logs
  4. The backfill continues core-side even while status polling fails
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at app/src/components/settings/panels/useReembedBackfillModal.ts:71 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/a5be386fd7377db6. Report an issue: GitHub.