music-assistant-server
Branch:dev-lidarr-plugin
Commit Details
Make Music Trivia title questions answerable (#6189)
# What does this implement/fix? Music Trivia title questions could refer to an unseen track or offer multiple valid answers. The prompt now tells the AI to ground the question in visible metadata and ensure only one answer option matches those facts. - Prevent references such as "this song" when no track is playing. - Require wrong title options not to match the facts in the question. - Add focused coverage for the title-question prompt contract. **Related issue (if applicable):** - https://github.com/music-assistant/support/issues/6268 Fixes: music-assistant/support#6268 ## Types of changes - [x] Bugfix (non-breaking change which fixes an issue) — `bugfix` - [ ] New feature (non-breaking change which adds functionality) — `new-feature` - [ ] Enhancement to an existing feature — `enhancement` - [ ] New music/player/metadata/plugin provider — `new-provider` - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) — `breaking-change` - [ ] Refactor (no behaviour change) — `refactor` - [ ] Documentation only — `documentation` - [ ] Maintenance / chore — `maintenance` - [ ] CI / workflow change — `ci` - [ ] Dependencies bump — `dependencies` ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable. - [ ] For changes to shared models, the companion PR in `music-assistant/models` is linked. - [ ] For changes affecting the UI, the companion PR in `music-assistant/frontend` is linked. - [x] I have read and complied with the project's [AI Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md) for any AI-assisted contributions. - [ ] I have [raised a PR against the documentation repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md) targeting the main or beta branch as appropriate. Co-authored-by: Copilot App <[email protected]>
Author
Marvin Schenkel<[email protected]>
September 3, 2026 at 02:02 PM UTC
Committer
Marvin Schenkel<[email protected]>
September 4, 2026 at 07:55 AM UTC
27additions
0deletions
2files changed
Parent commits
Changes
2 files
+27-0
Changed Files (2)
music_assistant/providers/music_quiz/quiz_types/
tests/providers/music_quiz/
music_assistant/providers/music_quiz/quiz_types/trivia.py
tests/providers/music_quiz/test_trivia.py
+27