Private
Public Access
0
0

docs(gui_2): fix 3 hot_reload refs (line 155->285, reload->reload_all, _render_* wrappers)

This commit is contained in:
2026-06-10 22:56:47 -04:00
parent 1c104abde2
commit 498c3478fa
+3 -3
View File
@@ -201,21 +201,21 @@ def render_<thing>(app: App) -> None:
### Hot Reload Hook
The Hot Reload module (`src/hot_reloader.py`) registers `src.gui_2` as a hot-reloadable module. The `state_keys` list (line 155) tells the reloader which App attributes to snapshot and restore:
The Hot Reload module (`src/hot_reloader.py`) registers `src.gui_2` as a hot-reloadable module. The `state_keys` list (at `src/gui_2.py:285`) tells the reloader which App attributes to snapshot and restore:
```python
state_keys=['active_discussion', 'show_windows', 'ui_file_paths',
'ui_screenshot_paths', 'disc_entries', 'disc_roles']
```
`delegation_targets` (line 156) lists the module-level functions the App calls into:
`delegation_targets` (at `src/gui_2.py:286`) lists the App's `_render_*` wrapper methods (not module-level `render_*` functions):
```python
delegation_targets=['_render_main_interface', '_render_discussion_hub',
'_render_files_and_media', '_render_ai_settings_hub',
'_render_operations_hub', '_render_mma_dashboard']
```
The user presses `Ctrl+Alt+R` → `_trigger_hot_reload()` → `HotReloader.reload("src.gui_2", app)`. The module is re-imported, the App's state is restored, and the next frame uses the new render functions.
The user presses `Ctrl+Alt+R` → `App._trigger_hot_reload()` (`src/gui_2.py:540`) → `HotReloader.reload_all(self)` (at `src/gui_2.py:542`). All registered modules are re-imported, the App's state is restored, and the next frame uses the new render functions.
### Snapshots (Undo/Redo)