Skip to content

fix(elore.lic): v2.1.2 capture additional RETRY in dothistimeout result#2298

Merged
mrhoribu merged 2 commits intomasterfrom
fix/elore-v2.1.2
Apr 19, 2026
Merged

fix(elore.lic): v2.1.2 capture additional RETRY in dothistimeout result#2298
mrhoribu merged 2 commits intomasterfrom
fix/elore-v2.1.2

Conversation

@mrhoribu
Copy link
Copy Markdown
Contributor

@mrhoribu mrhoribu commented Apr 19, 2026

Updated version to 2.1.2 and added changelog entry for the fix.

Summary by CodeRabbit

  • Bug Fixes
    • Improved retry detection accuracy to reduce false positives.
  • Chores
    • Version bumped to 2.1.2 with updated changelog.

Updated version to 2.1.2 and added changelog entry for the fix.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

Warning

Rate limit exceeded

@mrhoribu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 9 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 9 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fd17fc7a-d639-4192-95f4-17632c183f6c

📥 Commits

Reviewing files that changed from the base of the PR and between 930891f and 793a6b3.

📒 Files selected for processing (1)
  • scripts/elore.lic
📝 Walkthrough

Walkthrough

Version bump of script metadata from 2.1.1 to 2.1.2 with corresponding changelog entry. Updated retry detection regex pattern in the loresong logic by removing "something more" from the matching phrase while preserving the overall timeout/response behavior.

Changes

Cohort / File(s) Summary
Script versioning and retry detection fix
scripts/elore.lic
Updated script version to 2.1.2, added changelog entry documenting retry-detection fix, and refined loresong retry detection regex from could probably find out something more to could probably find out.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing retry detection in elore.lic by updating the regex pattern to capture additional RETRY results in dothistimeout.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/elore-v2.1.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
scripts/elore.lic (1)

140-145: ⚠️ Potential issue | 🟠 Major

NEEDS_RETRY pattern not broadened alongside the dothistimeout trigger — new RETRY variants will be misclassified as :success.

The fix at line 344 broadens the dothistimeout regex to stop on could probably find out (dropping the something more suffix), so additional game-response variants (e.g., ...you could probably find out more... without the literal something more) will now satisfy the timeout match. However, NEEDS_RETRY at line 143 still requires /could probably find out something more/i, so in sing_verse (lines 347-357) those new variants will fail the NEEDS_RETRY.any? check and fall through to the else → :success branch — meaning no retry is triggered and the verse is treated as completed. This defeats the stated intent of the PR ("capture additional RETRY in dothistimeout result").

🐛 Proposed fix — align NEEDS_RETRY with the broader trigger
     NEEDS_RETRY = [
       /has more to share.*wasn't powerful enough/i,
-      /could probably find out something more/i
+      /could probably find out/i
     ].freeze
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@scripts/elore.lic` around lines 140 - 145, NEEDS_RETRY’s regex still requires
the literal "something more" so it misses the broader variants matched by the
updated dothistimeout; update the NEEDS_RETRY array (the constant definition for
NEEDS_RETRY) to include a pattern that matches the shorter phrase used in
dothistimeout (e.g., /could probably find out/i or a combined regex covering
both "could probably find out" and "could probably find out something more") so
that sing_verse’s NEEDS_RETRY.any? check will correctly identify the new RETRY
variants.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@scripts/elore.lic`:
- Around line 12-13: The changelog entry under the "2.1.2 - 2026-04-19" heading
is unclear and grammatically awkward ("Fix for retrying loresong on additional
\"something\" can be detected"); update that line to a concise, clear phrase
that matches the PR title (e.g., "Fix: retry loresong when additional condition
detected" or "Fix retrying loresong when extra detection occurs"), ensuring it
replaces the existing sentence in scripts/elore.lic so the intent is
unambiguous.

---

Outside diff comments:
In `@scripts/elore.lic`:
- Around line 140-145: NEEDS_RETRY’s regex still requires the literal "something
more" so it misses the broader variants matched by the updated dothistimeout;
update the NEEDS_RETRY array (the constant definition for NEEDS_RETRY) to
include a pattern that matches the shorter phrase used in dothistimeout (e.g.,
/could probably find out/i or a combined regex covering both "could probably
find out" and "could probably find out something more") so that sing_verse’s
NEEDS_RETRY.any? check will correctly identify the new RETRY variants.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b64c1a55-5562-4c2a-9e42-dcd013917e65

📥 Commits

Reviewing files that changed from the base of the PR and between cecc89a and 930891f.

📒 Files selected for processing (1)
  • scripts/elore.lic

Comment thread scripts/elore.lic Outdated
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@mrhoribu mrhoribu merged commit c7f5d11 into master Apr 19, 2026
4 checks passed
@mrhoribu mrhoribu deleted the fix/elore-v2.1.2 branch April 19, 2026 23:17
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