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,