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 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 22:30:57 +01:00
parent b042fe4368
commit efd0a31426
+1 -1
View File
@@ -522,4 +522,4 @@ def render_sidebar(state: AppState, dual_pane: dict):
if _shared_db is not None: if _shared_db is not None:
register_api_routes(_shared_db) 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'])