diegosouzapw/OmniRoute · error · Error

Devin does not support plan approval - it auto-plans

Error message

Devin does not support plan approval - it auto-plans

What it means

Deliberate capability guard: DevinAgent.approvePlan always throws because Devin auto-plans and exposes no plan-approval operation. This is an unsupported-capability error by design, not a runtime failure — callers must check capabilities before invoking.

Solutions

  1. Skip approvePlan for devin agents based on the agent card capabilities
  2. Reflect the unsupported capability in the Agent Card
  3. Handle the throw as an expected unsupported-operation signal
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/lib/cloudAgent/agents/devin.ts:102 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/ac164b85c720689f. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/cloudAgent/agents/devin.ts:102

    if (status === CLOUD_AGENT_STATUS.COMPLETED && data.output) {
      result = {
        prUrl: data.pr_url,
        summary: data.output,
        duration: data.duration,
      };
    }

    return {
      status,
      externalId,
      result,
      activities,
      error: data.error,
    };
  }

  async approvePlan(_externalId: string, _credentials: AgentCredentials): Promise<void> {
    throw new Error("Devin does not support plan approval - it auto-plans");
  }

  async sendMessage(
    externalId: string,
    message: string,
    credentials: AgentCredentials
  ): Promise<CloudAgentActivity> {
    const response = await fetch(`${this.baseUrl}/sessions/${externalId}/message`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${credentials.apiKey}`,
      },
      body: JSON.stringify({ content: message }),
    });

    if (!response.ok) {
      const error = await response.text();

View on GitHub (pinned to a179ffed5b)