chore(ai-review 狀態): 補 NaN 測試、排除 recordRateLimit 微優化誤報,清空 findings.json
AI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Failing after 31s

This commit is contained in:
Jeffery
2026-06-23 16:36:42 +08:00
parent 6398d4a193
commit 1ff74297ce
2 changed files with 7 additions and 18 deletions
+6
View File
@@ -518,5 +518,11 @@
"role": "Maya",
"original_finding": "parseBotReviewComment 的測試沒有驗證解析失敗時回傳 null 的行為。",
"reason": "誤判,測試已存在。'returns null for free-form human comments' 已斷言自由格式留言、空字串、null 皆回傳 null。"
},
{
"location": "app/usage.js:146",
"role": "Rogue",
"original_finding": "在 recordRateLimit 中頻繁呼叫 lowerCaseKeys,對每個請求的 headers 複製與轉換,增加記憶體分配開銷;建議改用不分大小寫存取避免複製。",
"reason": "過度設計/非熱路徑。recordRateLimit 每次 LLM 回應只呼叫一次(一輪審查約 13 次),headers 物件小,複製成本可忽略;改用不分大小寫存取器反而增加複雜度,效益不成比例。"
}
]