Skip to content

fix: raise loop detection threshold to 10 to reduce false positives - #1887

Merged
avoidwork merged 1 commit into
mainfrom
fix/config
Nov 18, 2026
Merged

avoidwork merged 1 commit into
mainfrom
fix/config

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Description

Raised the loop detection threshold from 2 to 10 in config.yaml. This reduces false positives on reasonable repetition during reasoning, where a model legitimately restates a sentence or word a few times without being stuck in a loop.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)
  • Performance improvement
  • CI / build / tooling

Testing

N/A - configuration-only change. Existing loop detection unit tests continue to cover the threshold semantics.

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

@avoidwork avoidwork self-assigned this Nov 18, 2026
@avoidwork
avoidwork merged commit 998c7d4 into main Nov 18, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/config branch November 18, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant