diff --git a/src/app/api/proxy/route.ts b/src/app/api/proxy/route.ts index ae513c2..7293ea6 100644 --- a/src/app/api/proxy/route.ts +++ b/src/app/api/proxy/route.ts @@ -85,7 +85,8 @@ function extractPersonaName(content: string): string | null { function parseConversationToken(content: string | undefined | null): string | null { if (!content) return null; const trimmed = content.trim(); - const match = trimmed.match(/^\[sucker:conv=([a-z0-9]+)\]$/i); + // Find token anywhere in the content, not just when the whole string equals the token + const match = trimmed.match(/\[sucker:conv=([a-z0-9]+)\]/i); if (match) { return match[1]; }