{"record":{"id":"3c101c4ad60b75c3","repo":"tinyhumansai/openhuman","slug":"subconscious-trigger-failed","errorCode":null,"errorMessage":"[subconscious] trigger failed:","messagePattern":"\\[subconscious\\] trigger failed:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/hooks/useSubconscious.ts","lineNumber":121,"sourceCode":"\n  const triggerTick = useCallback(async (kind: TriggerKind = 'memory') => {\n    if (!isTauri()) return;\n    let alreadyInFlight = false;\n    setTriggeringKinds(prev => {\n      if (prev.has(kind)) {\n        alreadyInFlight = true;\n        return prev;\n      }\n      const next = new Set(prev);\n      next.add(kind);\n      return next;\n    });\n    if (alreadyInFlight) return;\n    try {\n      // A no-arg legacy call maps to memory; pass the kind through otherwise.\n      await subconsciousTrigger(kind === 'memory' ? undefined : kind);\n    } catch (err) {\n      console.warn('[subconscious] trigger failed:', err);\n    } finally {\n      setTriggeringKinds(prev => {\n        const next = new Set(prev);\n        next.delete(kind);\n        return next;\n      });\n    }\n  }, []);\n\n  const setMode = useCallback(\n    async (newMode: SubconsciousMode) => {\n      if (!isTauri()) return;\n      setSettingMode(true);\n      setModeState(newMode);\n      try {\n        await openhumanHeartbeatSettingsSet({ subconscious_mode: newMode });\n        await refresh();\n      } catch (err) {","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/app/src/hooks/useSubconscious.ts#L103-L139","documentation":"Failure of triggerTick in useSubconscious: the RPC that manually kicks a subconscious/heartbeat pass (kind memory by default, passed through for others, deduped via a triggeringKinds set) rejected. The catch warns; the finally block removes the kind from the in-flight set so the same trigger can be attempted again later.","triggerScenarios":"Thrown at app/src/hooks/useSubconscious.ts:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the trigger — the in-flight guard is cleared in finally","Verify the heartbeat/subconscious RPC is available in the running core build","Check core connectivity and auth token if failures persist"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}