Skip to content

feat(bot): add session novelty and similar energy autoplay reason tags - #380

Merged
LucasSantana-Dev merged 1 commit into
mainfrom
feat/autoplay-reason-tags
Mar 30, 2026
Merged

LucasSantana-Dev merged 1 commit into
mainfrom
feat/autoplay-reason-tags

Conversation

@LucasSantana-Dev

Copy link
Copy Markdown
Owner

Summary

  • New session novelty reason tag: candidates whose artist hasn't appeared in recent session history get +0.15 score boost, promoting genuine discovery
  • New similar energy reason tag: candidates with duration within ±30% of the current track get +0.1 boost as a lightweight energy-bucket signal
  • Artist diversity constraint (max 2 per artist per replenish batch) confirmed via existing MAX_TRACKS_PER_ARTIST = 2
  • 575 bot tests passing (2 new reason tag tests added)

Test plan

  • session novelty reason appears for tracks from artists not in recent history
  • similar energy reason appears when candidate duration is within ±30% of current track
  • fresh artist rotation still fires for artists in recentArtists but not currentArtist
  • Max 2 tracks per artist per replenish batch enforced

@vercel

vercel Bot commented Mar 30, 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 Mar 30, 2026 6:56pm

Request Review

@coderabbitai

coderabbitai Bot commented Mar 30, 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 21 minutes and 41 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 21 minutes and 41 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: 44ff0683-8cb7-4ccf-8857-405b8461da91

📥 Commits

Reviewing files that changed from the base of the PR and between 78bbc54 and 1878e75.

📒 Files selected for processing (2)
  • packages/bot/src/utils/music/queueManipulation.spec.ts
  • packages/bot/src/utils/music/queueManipulation.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/autoplay-reason-tags

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
LucasSantana-Dev force-pushed the feat/autoplay-reason-tags branch from 4426ce1 to 1878e75 Compare March 30, 2026 18:55
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
23.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@sonarqubecloud

Copy link
Copy Markdown

@LucasSantana-Dev
LucasSantana-Dev enabled auto-merge (squash) March 30, 2026 19:10
@LucasSantana-Dev
LucasSantana-Dev merged commit e0f5015 into main Mar 30, 2026
12 checks passed
@LucasSantana-Dev
LucasSantana-Dev deleted the feat/autoplay-reason-tags branch March 30, 2026 19:15

This branch was successfully deployed

1 active deployment
Preview — 1878e75a Deployed Mar 30, 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