You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Campfire Mode Spontaneously Turning Off and Changing Volume #71379
I always have Campfire Mode turned on in the settings, and its volume set to around 60-90/100. I've recently found myself suddenly noticing it's not on. When I then check the settings, I find it turned off and its volume set to 50/100, despite me not making either of these changes. None of the other settings change unprompted, as far as I can tell. This has happened roughly 3 times in the last week or so.
Thanks for the detailed report. I looked into the sound settings code and found that fcc-sound and soundVolume are stored only in the browser's localStorage, and nothing in the app writes the default values (off / 50) unless the toggle or slider is changed. That points to Firefox losing or clearing the site's local storage rather than the app resetting the settings.
Could you check the next time it happens:
Firefox Settings → Privacy & Security → Cookies and Site Data: is "Delete cookies and site data when Firefox is closed" enabled, and is freecodecamp.org in the exceptions list?
Do you use private windows, Firefox containers, or multiple Firefox profiles?
Do any other locally stored settings reset too — editor layout, scrollbar width, theme, or unsaved code on a challenge?
In DevTools → Storage → Local Storage → https://www.freecodecamp.org, are the fcc-sound and soundVolume keys missing after the reset?
Does it usually happen after restarting Firefox or after the browser has been idle?
For context, sound settings are intentionally stored per device rather than on the user profile (#48931), so they don't sync between browsers or devices.
Thanks for the quick reply, my friend. It hasn't happened again yet, but I can answer most of your questions:
Firefox Settings → Privacy & Security → Cookies and Site Data: is "Delete cookies and site data when Firefox is closed" enabled, and is freecodecamp.org in the exceptions list?
"Delete cookies and site data when Firefox is closed" is not enabled. I do, however, have Firefox's "Enhanced Tracking Protection" enabled and set to "Strict", with "Fix Major Issues" enabled under that. It's worth noting that I've had these settings for a long time, and they haven't caused any issues before now.
Do you use private windows, Firefox containers, or multiple Firefox profiles?
Yes, but not while using freeCodeCamp.
Do any other locally stored settings reset too — editor layout, scrollbar width, theme, or unsaved code on a challenge?
No.
In DevTools → Storage → Local Storage → https://www.freecodecamp.org, are the fcc-sound and soundVolume keys missing after the reset?
I'll check and update you if it happens again. They're currently there, but that's not surprising, since the issue hasn't happened again so far.
Does it usually happen after restarting Firefox or after the browser has been idle?
I haven't noticed a pattern, as it only recently started happening. However, I just tested it right now, and I can confirm that closing and re-opening Firefox, or even restarting my entire computer, does not cause it to happen.
Please let me know if there's anything else I can help with.
Update:
It just happened again. It seems to have happened after the browser was left idle for a while, as you (@Shubham02022002) suggested. Also, the localStorage keys fcc-sound and soundVolume are missing, as you said.
Do any other locally stored settings reset too — editor layout, scrollbar width, theme, or unsaved code on a challenge?
No.
In retrospect, I don't think I've changed any of the other locally stored settings from their default values in the first place, meaning I wouldn't be able to tell if they did reset. I'll change my scrollbar width, and I'll report whether it resets when/if this happens again.
Update: The scrollbar width also reset when it happened again. It seems to happen whenever the browser is left idle for a while, as suggested above, but I can't be 100% certain.
Thanks for the update — that's a really useful data point.
Since the scrollbar width reset too, this isn't specific to Campfire Mode or the sound settings: sound (fcc-sound), volume (soundVolume) and scrollbar width
(monacoScrollbarWidth) are all stored the same way, in localStorage. If one is gone, they're all gone, and the app falls back to defaults (sound off, volume 50,
scrollbar 5). The app itself never clears localStorage — the sound code only writes those keys when you touch the toggle or slider, so it can't be responsible for
them disappearing.
That points at the browser clearing freeCodeCamp's site data while Firefox is idle. A few things that would help narrow it down:
Do preferences you've changed on other websites also reset, or is it only freeCodeCamp?
Do you have any privacy / "auto clear" / cleaner extensions installed? Those often clear storage on a timer.
Does it still happen in a brand-new Firefox profile with no extensions and default settings? This is the quickest way to rule extensions and your current
profile out.
In about:config, search for privacy.clearOnShutdown, privacy.clearSiteData and dom.storage — do any of them have non-default values?
After a reset, does freecodecamp.org still appear under Settings → Privacy & Security → Cookies and Site Data → Manage Data?
If it still happens in a clean profile, it's likely a Firefox storage-clearing issue and would be worth reporting to Mozilla.
One possible improvement on our side: settings like keyboard shortcuts are saved to the user's account and restored on login, so it would be technically possible
to do the same for sound and volume and re-hydrate them from the account if localStorage is wiped. However, sound settings were deliberately made per-device
(#48931), so whether we should change that is a maintainer decision. Happy to open an enhancement issue for it if there's interest.
Activity
Shubham02022002 commentedon Oct 26, 2026
Thanks for the detailed report. I looked into the sound settings code and found that
fcc-soundandsoundVolumeare stored only in the browser'slocalStorage, and nothing in the app writes the default values (off / 50) unless the toggle or slider is changed. That points to Firefox losing or clearing the site's local storage rather than the app resetting the settings.Could you check the next time it happens:
freecodecamp.orgin the exceptions list?https://www.freecodecamp.org, are thefcc-soundandsoundVolumekeys missing after the reset?For context, sound settings are intentionally stored per device rather than on the user profile (#48931), so they don't sync between browsers or devices.
ShadyHBedda commentedon Oct 26, 2026
Thanks for the quick reply, my friend. It hasn't happened again yet, but I can answer most of your questions:
"Delete cookies and site data when Firefox is closed" is not enabled. I do, however, have Firefox's "Enhanced Tracking Protection" enabled and set to "Strict", with "Fix Major Issues" enabled under that. It's worth noting that I've had these settings for a long time, and they haven't caused any issues before now.
Yes, but not while using freeCodeCamp.
No.
I'll check and update you if it happens again. They're currently there, but that's not surprising, since the issue hasn't happened again so far.
I haven't noticed a pattern, as it only recently started happening. However, I just tested it right now, and I can confirm that closing and re-opening Firefox, or even restarting my entire computer, does not cause it to happen.
Please let me know if there's anything else I can help with.
ShadyHBedda commentedon Oct 26, 2026
Update:
It just happened again. It seems to have happened after the browser was left idle for a while, as you (@Shubham02022002) suggested. Also, the localStorage keys
fcc-soundandsoundVolumeare missing, as you said.ShadyHBedda commentedon Oct 26, 2026
In retrospect, I don't think I've changed any of the other locally stored settings from their default values in the first place, meaning I wouldn't be able to tell if they did reset. I'll change my scrollbar width, and I'll report whether it resets when/if this happens again.
Update: The scrollbar width also reset when it happened again. It seems to happen whenever the browser is left idle for a while, as suggested above, but I can't be 100% certain.
Shubham02022002 commentedon Oct 28, 2026
Thanks for the update — that's a really useful data point.
Since the scrollbar width reset too, this isn't specific to Campfire Mode or the sound settings: sound (
fcc-sound), volume (soundVolume) and scrollbar width(
monacoScrollbarWidth) are all stored the same way, in localStorage. If one is gone, they're all gone, and the app falls back to defaults (sound off, volume 50,scrollbar 5). The app itself never clears localStorage — the sound code only writes those keys when you touch the toggle or slider, so it can't be responsible for
them disappearing.
That points at the browser clearing freeCodeCamp's site data while Firefox is idle. A few things that would help narrow it down:
profile out.
about:config, search forprivacy.clearOnShutdown,privacy.clearSiteDataanddom.storage— do any of them have non-default values?If it still happens in a clean profile, it's likely a Firefox storage-clearing issue and would be worth reporting to Mozilla.
One possible improvement on our side: settings like keyboard shortcuts are saved to the user's account and restored on login, so it would be technically possible
to do the same for sound and volume and re-hydrate them from the account if localStorage is wiped. However, sound settings were deliberately made per-device
(#48931), so whether we should change that is a maintainer decision. Happy to open an enhancement issue for it if there's interest.
majestic-owl448 commentedon Oct 29, 2026
@Shubham02022002 thank you for helping triage this issue, but please keep in mind that the AI usage policy applies here too https://contribute.freecodecamp.org/faq/#can-i-use-ai-tools-to-help-with-my-contributions