tinyhumansai/openhuman · error
[conscious] Failed to trigger analysis:
Error message
[conscious] Failed to trigger analysis:
What it means
Guard around triggerAnalysis in useConsciousItems: the call that kicks off conscious-item analysis (gated on Tauri + auth token + a running-ref dedupe) rejected. The catch warns with the error and lets the finally block clear the running flag, so the hook stays consistent and a later trigger can retry; items simply don't refresh.
Source
Thrown at app/src/hooks/useConsciousItems.ts:187
const extracted = extractActionablesFromContext(queryResult.text);
setItems(extracted.map(mapToActionableItem));
} catch (err) {
const msg = err instanceof Error ? err.message : 'Failed to load conscious items';
setError(msg);
} finally {
setLoading(false);
fetchingRef.current = false;
}
}, []);
const triggerAnalysis = useCallback(async () => {
const authToken = getCoreStateSnapshot().snapshot.sessionToken;
if (!isTauri() || !authToken || isRunning || runningRef.current) return;
runningRef.current = true;
try {
await consciousLoopRun(authToken, await getBackendUrl());
} catch (err) {
console.warn('[conscious] Failed to trigger analysis:', err);
} finally {
runningRef.current = false;
}
}, [isRunning]);
// Initial fetch
useEffect(() => {
refresh();
}, [refresh]);
// Listen to conscious loop events
useEffect(() => {
if (!isTauri()) return;
let unlistenStarted: (() => void) | undefined;
let unlistenCompleted: (() => void) | undefined;
listen('conscious_loop:started', () => {View on GitHub (pinned to 7491200858)
Solutions
- Retry by re-triggering analysis once the core/session is healthy
- Check core connectivity and session token presence if it consistently fails
- Ensure the analysis RPC endpoint is registered in the running core build
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at app/src/hooks/useConsciousItems.ts:187 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/08980df6920ad251.
Report an issue: GitHub.