fix: remove error-entry exclusion from countFeedbackRounds - #50
Merged
adalton merged 1 commit intoJul 10, 2026
Merged
Conversation
Error entries like "Feedback (15) (error)" were excluded from the round count by the "!strings.Contains(error)" filter. This caused the first attempt of each round to compute round N+1 while retries computed round N (since the error entry wasn't counted), producing oscillating labels: Feedback (15) → Feedback (14) retry 1 → Feedback (14) retry 2 → Feedback (15) again. Since feedbackLabel always includes the round number in error entries, a bare "Feedback (error)" can never reach the cost table. The exclusion is unnecessary and harmful — remove it. Assisted-by: Claude claude-opus-4-6 (1M) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Walkthrough
ChangesFeedback round counting
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: 🚥 Pre-merge checks | ✅ 13✅ Passed checks (13 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
countFeedbackRoundsexcluded error entries from the count!strings.Contains(e.Label, "error")filter — error entries with round numbers (e.g., "Feedback (15) (error)") should count as rounds sincefeedbackLabelalways includes the round numberTest plan
TestCountFeedbackRounds— "error entries count as rounds" replaces "error entries do not count as rounds"-raceAssisted-by: Claude noreply@anthropic.com
executor/