From bdf9612b443d622d0080a5d2252ff5f382db6b27 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 7 Jun 2026 16:15:54 +0800 Subject: [PATCH] chore: hide GitHub Issue tasks from open task listings --- apps/web/src/app/api/mcp/[tool]/route.ts | 9 ++++++++- apps/web/src/app/api/open-tasks/route.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/api/mcp/[tool]/route.ts b/apps/web/src/app/api/mcp/[tool]/route.ts index 44b3fab..da7f050 100644 --- a/apps/web/src/app/api/mcp/[tool]/route.ts +++ b/apps/web/src/app/api/mcp/[tool]/route.ts @@ -140,7 +140,14 @@ export async function POST(request: NextRequest, props: { params: Promise<{ tool const trafficAction = isPublicIp ? "EXTERNAL_LIST_OPEN_TASKS_MCP" : "INTERNAL_LIST_OPEN_TASKS_MCP"; const tasks = await prisma.task.findMany({ - where: { status: TaskStatus.OPEN }, + where: { + status: TaskStatus.OPEN, + title: { + not: { + startsWith: "GitHub Issue:", + }, + }, + }, }); const formattedTasks = tasks.map((t) => ({ diff --git a/apps/web/src/app/api/open-tasks/route.ts b/apps/web/src/app/api/open-tasks/route.ts index b51bb82..e5ef007 100644 --- a/apps/web/src/app/api/open-tasks/route.ts +++ b/apps/web/src/app/api/open-tasks/route.ts @@ -146,7 +146,14 @@ export async function GET(request: Request) { const trafficAction = isPublicIp ? "EXTERNAL_LIST_OPEN_TASKS" : "INTERNAL_LIST_OPEN_TASKS"; const tasks = await prisma.task.findMany({ - where: { status: TaskStatus.OPEN }, + where: { + status: TaskStatus.OPEN, + title: { + not: { + startsWith: "GitHub Issue:", + }, + }, + }, orderBy: { created_at: "desc" }, select: { id: true,