From f6d1295c6f903933e40b15c75b4373049a8a0421 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Mon, 1 Dec 2025 10:29:55 -0600 Subject: [PATCH] fix(know-your-world): restore no-music celebration sounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass startTime in addition to type from Provider to MusicProvider. The previous fix required startTime for deduplication but Provider was only passing type, causing the effect to never trigger. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/.claude/settings.local.json | 7 +++---- apps/web/src/arcade-games/know-your-world/Provider.tsx | 6 ++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/web/.claude/settings.local.json b/apps/web/.claude/settings.local.json index 0ec488d5..4596907d 100644 --- a/apps/web/.claude/settings.local.json +++ b/apps/web/.claude/settings.local.json @@ -86,13 +86,12 @@ "Bash(npm run lint:*)", "WebFetch(domain:strudel.cc)", "WebFetch(domain:club.tidalcycles.org)", - "Bash(git reset:*)" + "Bash(git reset:*)", + "WebFetch(domain:abaci.one)" ], "deny": [], "ask": [] }, "enableAllProjectMcpServers": true, - "enabledMcpjsonServers": [ - "sqlite" - ] + "enabledMcpjsonServers": ["sqlite"] } diff --git a/apps/web/src/arcade-games/know-your-world/Provider.tsx b/apps/web/src/arcade-games/know-your-world/Provider.tsx index c87e8d53..c04f93e4 100644 --- a/apps/web/src/arcade-games/know-your-world/Provider.tsx +++ b/apps/web/src/arcade-games/know-your-world/Provider.tsx @@ -600,8 +600,10 @@ export function KnowYourWorldProvider({ children }: { children: React.ReactNode // Music is active when game is in playing phase const isMusicActive = state.gamePhase === 'playing' - // Pass celebration state to music provider (with type only) - const musicCelebration = celebration ? { type: celebration.type } : null + // Pass celebration state to music provider (type + startTime for deduplication) + const musicCelebration = celebration + ? { type: celebration.type, startTime: celebration.startTime } + : null return (