Skip to content

chore(audio): diagnostic logging for silent ambient bug#357

Merged
mokn merged 1 commit intodevfrom
feat/audio-zones
Apr 13, 2026
Merged

chore(audio): diagnostic logging for silent ambient bug#357
mokn merged 1 commit intodevfrom
feat/audio-zones

Conversation

@mokn
Copy link
Copy Markdown
Collaborator

@mokn mokn commented Apr 13, 2026

Summary

Temporary — ambient track silent on beta after hard refresh with zero SoundContext signal in console. Adds [SoundContext] prefixed logs at every decision point so we can see which path the code is (or isn't) taking. Remove once root cause is identified.

Logs at:

  • Provider mount (stored soundEnabled, zone, auth state)
  • Auto-enable check (fired / skipped reason)
  • Playback effect entry (soundEnabled, zone, battleMode, ctx state, active)
  • Howl construction + onload/onloaderror/onplay/onplayerror
  • Unlock gesture + ctx.resume success/failure

Test plan

  • pnpm --filter client test -- SoundContext — 23/23 passing
  • pnpm --filter client build — clean

🤖 Generated with Claude Code

Temporary — the ambient track is silent on beta after hard refresh and
there's no SoundContext signal in the console at all. Adds logs at:

- Provider mount (with stored soundEnabled / zone / auth state)
- Auto-enable check (why fired or why skipped)
- Playback effect entry (soundEnabled, zone, battleMode, ctx state, active)
- Howl construction + onload/onloaderror/onplay/onplayerror callbacks
- Unlock gesture (ctx state, active track)
- ctx.resume success/failure

All prefixed with [SoundContext] for grep. Remove once root cause found.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@mokn mokn merged commit e8b0183 into dev Apr 13, 2026
1 of 5 checks passed
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 13, 2026

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

Project Deployment Actions Updated (UTC)
blog Building Building Preview, Comment Apr 13, 2026 9:35pm
ud Building Building Preview, Comment Apr 13, 2026 9:35pm
ud-api Building Building Preview, Comment Apr 13, 2026 9:35pm
ud-api-beta Building Building Preview, Comment Apr 13, 2026 9:35pm

Request Review

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