streamlit-nightly 1.38.1.dev20240904__py2.py3-none-any.whl → 1.38.1.dev20240905__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
streamlit/config.py CHANGED
@@ -747,6 +747,17 @@ _create_option(
747
747
  type_=bool,
748
748
  )
749
749
 
750
+ _create_option(
751
+ "server.disconnectedSessionTTL",
752
+ description="""
753
+ TTL in seconds for sessions whose websockets have been disconnected. The server
754
+ may choose to clean up session state, uploaded files, etc for a given session
755
+ with no active websocket connection at any point after this time has passed.
756
+ """,
757
+ default_val=120,
758
+ type_=int,
759
+ )
760
+
750
761
  # Config Section: Browser #
751
762
 
752
763
  _create_section("browser", "Configuration of non-UI browser options.")
@@ -578,6 +578,13 @@ class AppSession:
578
578
  page_script_hash is not None
579
579
  ), "page_script_hash must be set for the SCRIPT_STARTED event"
580
580
 
581
+ # Update the client state with the new page_script_hash if
582
+ # necessary. This handles an edge case where a script is never
583
+ # finishes (eg. by calling st.rerun()), but the page has changed
584
+ # via st.navigation()
585
+ if page_script_hash != self._client_state.page_script_hash:
586
+ self._client_state.page_script_hash = page_script_hash
587
+
581
588
  if clear_forward_msg_queue:
582
589
  self._clear_queue()
583
590
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.5513bd04.css",
4
- "main.js": "./static/js/main.31d1a42d.js",
4
+ "main.js": "./static/js/main.7feaefcb.js",
5
5
  "static/js/6679.265ca09c.chunk.js": "./static/js/6679.265ca09c.chunk.js",
6
6
  "static/js/9464.7e9a3c0a.chunk.js": "./static/js/9464.7e9a3c0a.chunk.js",
7
7
  "static/js/9077.e0a8db2a.chunk.js": "./static/js/9077.e0a8db2a.chunk.js",
@@ -153,6 +153,6 @@
153
153
  },
154
154
  "entrypoints": [
155
155
  "static/css/main.5513bd04.css",
156
- "static/js/main.31d1a42d.js"
156
+ "static/js/main.7feaefcb.js"
157
157
  ]
158
158
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.31d1a42d.js"></script><link href="./static/css/main.5513bd04.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.7feaefcb.js"></script><link href="./static/css/main.5513bd04.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>