feat: extractProactiveMessage 单元测试 + 修复 log.Printf 格式化 bug

- 7 个测试覆盖:无标记/Web推送/OBv11群聊/私聊/@提及/否定语境/继续思考
- 修复 thinker.go:454 log.Printf %%v → %v 格式化错误

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-23 12:26:39 +08:00
parent b3ce0b4f52
commit f0e8ffa2bb
2 changed files with 120 additions and 1 deletions
@@ -451,7 +451,7 @@ func NewThinker(
}
loc, err := time.LoadLocation(tzName)
if err != nil {
log.Printf("[后台思考] 无效时区 '%s',回退到 Asia/Shanghai: %%v", tzName, err)
log.Printf("[后台思考] 无效时区 '%s',回退到 Asia/Shanghai: %v", tzName, err)
loc, _ = time.LoadLocation("Asia/Shanghai")
}