mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-05 03:50:59 +08:00
🎯 Problem Prevention: After analyzing the fullwidth character bug (2025-11-04 22:30), we discovered that prompt changes can trigger AI to output fullwidth JSON characters. ✅ Solution: Explicit format constraints Added "⚠️ 格式硬规范" sections to both prompts: **adaptive.txt** (+23 lines): - 仅输出 ASCII 字符(半角括号、英文标点) - 禁止 Markdown 围栏(```json) - 思维链格式规范(cooldown/trend/confidence/Key insight) - 单一数组输出(避免嵌套) **default.txt** (+20 lines): - 仅输出 ASCII 字符(禁止全角标点) - 禁止 Markdown 包裹 - 唯一思维链格式(THINK: ...) - 严格数组格式 📊 Expected Impact: - Reduce fullwidth character occurrence: 5-10% → <1% - Clearer AI output format expectations - Prevent future JSON parsing failures 🔗 Related: - Bug timeline: /Users/sotadic/Documents/GitHub/fullwidth-bug-timeline-analysis.md - Root cause: Prompt changes → increased Chinese context → fullwidth punctuation