fix: disable Streamlit dev shortcuts to prevent Ctrl+C triggering Clear Caches on Windows (#309)

This commit is contained in:
AspasZhang authored and GitHub committed 2026-05-09 12:31:28 +08:00
1 parent 1416f70efb
commit 6a4db9a140
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ def get_screen_width():
def start_streamlit(port):
global proc
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true"]
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true", "--client.toolbarMode", "viewer"]
proc = subprocess.Popen(cmd)
atexit.register(proc.kill)