From b0d5696a3ae4f0818dbcc2e95ff5093338a48e68 Mon Sep 17 00:00:00 2001 From: Severian Date: Sat, 4 Oct 2025 04:55:44 +0800 Subject: [PATCH] match token fix --- src/app/api/proxy/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; }