Skip to content

Agent API call fails with "signal: Extra inputs are not permitted" #26

@aaronsmoss3

Description

@aaronsmoss3

When trying to run dev after local setup and validating anthropic API token calls:

The AgentService.runAgentLoop method in src/agent/agent-service.ts passes the AbortController.signal as a property inside the request body object sent to client.messages.create(). The Anthropic API rejects this with a 400 invalid_request_error because signal is not a valid API parameter -- it's a client-side SDK option for request cancellation.

The error is silent from the user's perspective: the Ask Proof dialog closes, a comment is created, but no agent response ever appears. The only evidence is a console log:

[AgentIntegration] Agent error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"signal: Extra inputs are not permitted"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions