From efd0a3142629a949d6709fea76d7e37913db8a56 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 17 Mar 2026 22:30:57 +0100 Subject: [PATCH] Restrict reload watcher to .py files to prevent page reload on save reload=True was watching all file changes, causing full page reloads when save_json/save_config wrote .json and .json.tmp files. Co-Authored-By: Claude Opus 4.6 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0965964..4c3078c 100644 --- a/main.py +++ b/main.py @@ -522,4 +522,4 @@ def render_sidebar(state: AppState, dual_pane: dict): if _shared_db is not None: register_api_routes(_shared_db) -ui.run(title='AI Settings Manager', port=8080, reload=True) +ui.run(title='AI Settings Manager', port=8080, reload=True, reload_includes=['*.py'])