restructuring and layout improvements + save config locally

This commit is contained in:
vadimwit
2026-03-10 12:06:29 +00:00
parent b989238373
commit dec0fc1595
7 changed files with 258 additions and 114 deletions
+2 -3
View File
@@ -417,9 +417,8 @@ export function detectRepeatingProgression(history) {
if (reps < 2) continue
const score = reps * len
// Prefer longer patterns on equal score — more descriptive loop wins
if (score > bestScore || (score === bestScore && len > (best?.length ?? 0))) {
const score = reps * len * len // square length — prevents sub-patterns from beating full loop
if (score > bestScore) {
bestScore = score
best = candidate
}