From cff5cd6014d31409d392b563f0fcfebaf0f89138 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Tue, 10 Mar 2026 16:36:47 -0700 Subject: [PATCH] fix: pass full PRD to COO without truncation Made-with: Cursor --- app/api/projects/[projectId]/advisor/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/projects/[projectId]/advisor/route.ts b/app/api/projects/[projectId]/advisor/route.ts index 0080870..6b1e9ce 100644 --- a/app/api/projects/[projectId]/advisor/route.ts +++ b/app/api/projects/[projectId]/advisor/route.ts @@ -75,7 +75,8 @@ Operating principles: // PRD or discovery phases if (prd) { - lines.push(`\n## Product Requirements Document\n${prd.slice(0, 2500)}${prd.length > 2500 ? '\n[truncated — ask the founder for more detail]' : ''}`); + // Claude Sonnet has a 200k token context — pass the full PRD, no truncation needed + lines.push(`\n## Product Requirements Document\n${prd}`); } else if (phaseRows.length > 0) { lines.push(`\n## Discovery phases completed (${phaseRows.length})`); for (const p of phaseRows) {