diegosouzapw/OmniRoute · error
Cursor get agent failed: ${response.status} ${error}
Error message
Cursor get agent failed: ${response.status} ${error} What it means
Error "Cursor get agent failed: ${response.status} ${error}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/cloudAgent/agents/cursor.ts:115
status: this.mapCursorStatus(data.status),
prompt: params.prompt,
source: params.source,
options: params.options,
activities: [],
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
};
}
async getStatus(externalId: string, credentials: AgentCredentials): Promise<GetStatusResult> {
const response = await fetch(
`${this.resolveBaseUrl(credentials)}/agents/${encodeURIComponent(externalId)}`,
{ headers: this.authHeaders(credentials) }
);
if (!response.ok) {
const error = await response.text();
throw new Error(`Cursor get agent failed: ${response.status} ${error}`);
}
const data = await response.json();
const status = this.mapCursorStatus(data.status);
const conversation = Array.isArray(data.conversation) ? data.conversation : [];
const activities: CloudAgentActivity[] = conversation.map((msg: Record<string, unknown>) => ({
id: this.generateActivityId(),
type: "message" as const,
content: typeof msg.text === "string" ? msg.text : "",
timestamp: (msg.createdAt as string) || new Date().toISOString(),
}));
let result;
if (status === CLOUD_AGENT_STATUS.COMPLETED) {
const target = (data.target as Record<string, unknown>) || {};
result = {
prUrl: (target.prUrl as string) || (target.url as string) || undefined,View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/cloudAgent/agents/cursor.ts:115 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/c782f22b6af55c71.
Report an issue: GitHub.