tinyhumansai/openhuman · error

[home] applyOpenRouterFreeModels failed

Error message

[home] applyOpenRouterFreeModels failed

What it means

Applying the OpenRouter free-models preset failed on the Home page: applyOpenRouterFreeModels rejected after the UI set status 'saving', so the handler sets status 'error' and the navigation to /chat does not happen. Model route configuration is left unchanged — the user stays on Home with the error state visible in the status line.

Source

Thrown at app/src/pages/Home.tsx:79

    setIsRestartingCore(true);
    setRestartError(null);
    try {
      await restartCoreProcess();
    } catch (err) {
      setRestartError(err instanceof Error ? err.message : String(err));
    } finally {
      setIsRestartingCore(false);
    }
  };

  const handleUseOpenRouterFree = async () => {
    setOpenRouterStatus('saving');
    try {
      await applyOpenRouterFreeModels();
      setOpenRouterStatus('idle');
      navigate('/chat');
    } catch (err) {
      console.warn('[home] applyOpenRouterFreeModels failed', err);
      setOpenRouterStatus('error');
    }
  };

  const statusCopy = {
    ok: t('home.statusOk'),
    'backend-only': t('home.statusBackendOnly'),
    'core-unreachable': t('home.statusCoreUnreachable'),
    'internet-offline': t('home.statusInternetOffline'),
  }[blocking];

  // Open in-app chat.
  const handleStartCooking = async () => {
    navigate('/chat');
  };

  useEffect(() => {
    const activeVariant = welcomeVariants[welcomeVariantIndex] ?? '';

View on GitHub (pinned to 7491200858)

Solutions

  1. Check the console-warned error — missing/expired OpenRouter credentials are the common cause
  2. Configure a valid OpenRouter key in settings, then retry the use-free-models action
  3. If the error is a config validation rejection, inspect the core log for the routing config write
  4. A successful retry navigates to /chat as designed
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at app/src/pages/Home.tsx:79 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/508d5102b5727506. Report an issue: GitHub.