diegosouzapw/OmniRoute · error · Error

Failed to apply settings

Error message

Failed to apply settings

What it means

Error "Failed to apply settings" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/app/(dashboard)/dashboard/cli-code/components/GrokBuildToolCard.tsx:292

      };
      const response = await fetch(SETTINGS_ENDPOINT, {
        method: "POST",
        headers: { "content-type": "application/json" },
        body: JSON.stringify({
          baseUrl,
          keyId: selectedKeyId || null,
          model,
          contextWindow: selectedContext(model),
          subagentModels: Object.fromEntries(
            Object.entries(desiredSubagents).map(([type, entry]) => [
              type,
              { ...entry, contextWindow: selectedContext(entry.model) },
            ])
          ),
        }),
      });
      const body: unknown = await response.json();
      if (!response.ok) throw new Error(errorText(body, "Failed to apply settings"));
      setMessage({ type: "success", text: "Grok Build settings applied." });
      await Promise.all([refreshStatus(), refreshBackups()]);
    } catch (error) {
      setMessage({ type: "error", text: error instanceof Error ? error.message : String(error) });
    } finally {
      setApplying(false);
    }
  };

  const reset = async () => {
    setResetting(true);
    setMessage(null);
    try {
      const response = await fetch(SETTINGS_ENDPOINT, { method: "DELETE" });
      const body: unknown = await response.json();
      if (!response.ok) throw new Error(errorText(body, "Failed to reset settings"));
      setMessage({ type: "success", text: "Grok Build settings reset." });
      await Promise.all([refreshStatus(), refreshBackups()]);

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/cli-code/components/GrokBuildToolCard.tsx:292 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/2dc6d3259089778d. Report an issue: GitHub.