Skip to content

fix(bot): Phase 2.5 bounded trackNowPlaying state - #675

Merged
LucasSantana-Dev merged 1 commit into
mainfrom
fix/phase-2-5-now-playing-state
Apr 17, 2026
Merged

LucasSantana-Dev merged 1 commit into
mainfrom
fix/phase-2-5-now-playing-state

Conversation

@LucasSantana-Dev

Copy link
Copy Markdown
Owner

Summary

Pattern (Option A: LRU+TTL)

Increases per-guild state limits to 5000 entries (from 500) with aggressive 30-minute expiration. Both caches store transient metadata:

  • songInfoMessages: now-playing message ID/channel (expires if guild leaves or message is deleted)
  • lastFmTrackStartTime: scrobble timestamp (expires after track completes)

30-minute TTL is conservative since typical tracks last 3-5 minutes.

Tests

✅ All 2660 tests passed
✅ Type checking: no errors
✅ Linting: no errors

@vercel

vercel Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lucky Ready Ready Preview, Comment Apr 17, 2026 1:51am

Request Review

@LucasSantana-Dev
LucasSantana-Dev enabled auto-merge (squash) April 17, 2026 01:48
@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@LucasSantana-Dev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 48 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 59 minutes and 48 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: 8e2faaab-6e4b-43e8-9a50-cef24c943993

📥 Commits

Reviewing files that changed from the base of the PR and between b095e20 and 3301f65.

📒 Files selected for processing (1)
  • packages/bot/src/handlers/player/trackNowPlaying.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/phase-2-5-now-playing-state

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.

@LucasSantana-Dev

Copy link
Copy Markdown
Owner Author

Superseded by consolidated #676 (Phase 2 memory hygiene bundle).

auto-merge was automatically disabled April 17, 2026 01:52

Pull request was closed

@sonarqubecloud

Copy link
Copy Markdown

@LucasSantana-Dev
LucasSantana-Dev merged commit 3497d6c into main Apr 17, 2026
12 checks passed
@LucasSantana-Dev
LucasSantana-Dev deleted the fix/phase-2-5-now-playing-state branch May 23, 2026 02:21

This branch was successfully deployed

1 active deployment
Preview — 3301f65e Deployed Apr 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant