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) {