diegosouzapw/OmniRoute · error · Error

HyperAgent configure thread HTTP ${res.status}: ${errText.sl

Error message

HyperAgent configure thread HTTP ${res.status}: ${errText.slice(0, 300) || res.statusText}

What it means

Error "HyperAgent configure thread HTTP ${res.status}: ${errText.slice(0, 300) || res.statusText}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/executors/hyperagent.ts:619

    runtimeId: opts.runtimeId || "claude-agents-sdk",
  };
  // "auto" = execution-style agent loop (validated). null clears. Never "plan".
  if (opts.executionMode === "auto") body.executionMode = "auto";
  else if (opts.executionMode === null) body.executionMode = null;

  const res = await fetch(`${ORIGIN}/api/threads/${encodeURIComponent(threadId)}`, {
    method: "PATCH",
    headers: browserHeaders(cookie, {
      "content-type": "application/json",
      "x-request-id": randomUUID(),
      referer: `${ORIGIN}/thread/${threadId}`,
    }),
    body: JSON.stringify(body),
    signal: signal ?? undefined,
  });
  if (!res.ok) {
    const errText = await res.text().catch(() => "");
    throw new Error(
      `HyperAgent configure thread HTTP ${res.status}: ${errText.slice(0, 300) || res.statusText}`
    );
  }
}

export function extractThreadIdFromUrl(url: string): string {
  if (!url) return "";
  const m = url.match(/\/thread\/([A-Za-z0-9_-]{10,})/i) || url.match(/(cm[a-z0-9]{20,})/i);
  return m ? m[1]! : "";
}

/**
 * Default feature flags from live SPA **execution-mode** chat body.
 *
 * Important differences from older plan-mode captures:
 * - Do NOT set injectPlanMode (plan mode). Execution omits the field entirely.
 * - Do NOT put modelId/model here — model is PATCH'd onto the thread first.
 * - enabledIntegrations: [] — no connectors; integrationMode stays "open" like SPA.

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/executors/hyperagent.ts:619 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/fe12a6699bd6b83a. Report an issue: GitHub.