Data Apps Now Sleep Correctly — Idle Tabs No Longer Keep Apps Awake
Streamlit data apps now suspend correctly even when left open in an inactive browser tab — periodic background requests from Streamlit are no longer counted as user activity, so forgotten tabs no longer prevent apps from going to sleep.
Streamlit data apps now sleep when they should. Previously, simply having a data app open in a browser tab was enough to keep it running indefinitely — even if nobody was actively using it. After an app was suspended, Streamlit's own periodic background requests would immediately wake it back up, so the intended sleep never actually took effect.
We've updated apps-proxy to distinguish between automatic Streamlit heartbeat requests and genuine user-driven activity. Only interactions that reflect a real user doing something now count toward the activity timer. Forgotten or idle tabs no longer register as activity, and apps can finally suspend as designed.
What's changing
- Apps sleep as expected: A data app left open but unused in a browser tab will now suspend on schedule, reducing unnecessary compute time.
- Waking up is easy: If you return to a tab with a suspended app, you'll see a message prompting you to reload the page — clicking it wakes the app right back up.
- No action needed: The fix is applied automatically across all Streamlit data apps. No configuration changes are required.
If you've noticed your data apps staying active longer than expected, this update resolves that. The change is live now as part of the latest apps-proxy release.