Skip to content

Campfire Mode Spontaneously Turning Off and Changing Volume #71379

Open

Description

@ShadyHBedda

Describe the Issue

Good day, friends 👋😄

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.

Affected Page

https://www.freecodecamp.org/settings

Steps to Reproduce

Unfortunately, I don't know what causes this issue to happen or how to reproduce it. I just

  1. Use freeCodeCamp as normal
  2. Suddenly recognize absence of expected sound effects
  3. Check settings page
  4. Find Campfire Mode turned off and its volume reset to 50

Expected behavior

Campfire Mode settings not changing unless explicitly changed by user.

Screenshots

No response

System

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0

Additional context

No response

Activity

  1. added theissue type on Oct 25, 2026
  2. added
    status: waiting triage
    on Oct 25, 2026
  3. Shubham02022002 commented on Oct 26, 2026

    @Shubham02022002
    Contributor

    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.

  4. ShadyHBedda commented on Oct 26, 2026

    @ShadyHBedda
    Author

    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.

  5. ShadyHBedda commented on Oct 26, 2026

    @ShadyHBedda
    Author

    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.

  6. ShadyHBedda commented on Oct 26, 2026

    @ShadyHBedda
    Author

    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.

  7. Shubham02022002 commented on Oct 28, 2026

    @Shubham02022002
    Contributor

    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.

  8. majestic-owl448 commented on Oct 29, 2026

    @majestic-owl448
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: waiting triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions