diegosouzapw/OmniRoute · error

Cursor create agent failed: ${response.status} ${error}

Error message

Cursor create agent failed: ${response.status} ${error}

What it means

Error "Cursor create agent failed: ${response.status} ${error}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/cloudAgent/agents/cursor.ts:88

    const taskId = this.generateTaskId();

    const source: Record<string, unknown> = { repository: params.source.repoUrl };
    if (params.source.branch) source.ref = params.source.branch;
    const body: Record<string, unknown> = {
      prompt: { text: params.prompt },
      source,
    };
    if (params.options.autoCreatePr) body.autoCreatePr = true;

    const response = await fetch(`${this.resolveBaseUrl(credentials)}/agents`, {
      method: "POST",
      headers: this.authHeaders(credentials, true),
      body: JSON.stringify(body),
    });

    if (!response.ok) {
      const error = await response.text();
      throw new Error(`Cursor create agent failed: ${response.status} ${error}`);
    }

    const data = await response.json();

    return {
      id: taskId,
      providerId: this.providerId,
      externalId: data.id,
      status: this.mapCursorStatus(data.status),
      prompt: params.prompt,
      source: params.source,
      options: params.options,
      activities: [],
      createdAt: new Date().toISOString(),
      updatedAt: new Date().toISOString(),
    };
  }

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/cloudAgent/agents/cursor.ts:88 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/a83ee013b88013c6. Report an issue: GitHub.