fix: shuffle choice options per session + clean followup hints

- Options shuffled with correctAnswer remapped at session creation
- Followup hints strip conditional prefix (如果只说了XX,追问:)
This commit is contained in:
Developer
2026-05-21 12:42:52 +08:00
parent 734c0129d8
commit 24ffc028e2
2 changed files with 31 additions and 13 deletions
@@ -254,7 +254,8 @@ Format your response as JSON:
let followupHintMsg: AIMessage | null = null;
if (shouldFollowUp && followupHints.length > 0) {
const hint = followupHints[Math.min(currentFollowUpCount, followupHints.length - 1)];
let hint = followupHints[Math.min(currentFollowUpCount, followupHints.length - 1)];
hint = hint.replace(/^如果[^,]*[,]\s*追问[:]\s*/i, '').replace(/^如果[^。]*[。]\s*/i, '');
const hintLabel = isZh
? `让我帮你完善一下:${hint}`
: isJa