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"
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"