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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user