diegosouzapw/OmniRoute · error
Cursor follow-up failed
Error message
Cursor follow-up failed: ${response.status} ${error} What it means
CursorAgent.sendMessage POSTed a follow-up prompt to /agents/{id}/followup and got a non-OK status; the body is embedded. The follow-up was rejected — agent completed, invalid id, auth, or rate limit.
Solutions
- Verify the agent is still active before sending follow-ups
- Refresh credentials on auth failures
- Back off on 429 and retry transient 5xx
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/cloudAgent/agents/cursor.ts:167 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/466b8adb466a022b.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/cloudAgent/agents/cursor.ts:167
}
async sendMessage(
externalId: string,
message: string,
credentials: AgentCredentials
): Promise<CloudAgentActivity> {
const response = await fetch(
`${this.resolveBaseUrl(credentials)}/agents/${encodeURIComponent(externalId)}/followup`,
{
method: "POST",
headers: this.authHeaders(credentials, true),
body: JSON.stringify({ prompt: { text: message } }),
}
);
if (!response.ok) {
const error = await response.text();
throw new Error(`Cursor follow-up failed: ${response.status} ${error}`);
}
return {
id: this.generateActivityId(),
type: "message",
content: message,
timestamp: new Date().toISOString(),
};
}
async listSources(
credentials: AgentCredentials
): Promise<{ name: string; url: string; branch?: string }[]> {
const response = await fetch(`${this.resolveBaseUrl(credentials)}/repositories`, {
headers: this.authHeaders(credentials),
});
if (!response.ok) return [];View on GitHub (pinned to a179ffed5b)