Closed christian-byrne closed 1 hour ago
Is this feature about some backend configurations that can be hot-changed? such as load device, dtype, etc?
Is this feature about some backend configurations that can be hot-changed? such as load device, dtype, etc?
It's about storing all settings values on server instead of local storage.
Is this feature about some backend configurations that can be hot-changed? such as load device, dtype, etc?
It's about storing all settings values on server instead of local storage.
Currently that is already the case for settings. They are eagerly pushing changes to settings.json. The issue now is only lacking of mechanism to sync settings across multiple browser tabs.
Can you briefly explain the system? I did not see the server endpoints for changing/acessing settings.
I see it is in user_manager.py
. The frontend is accessing these settings via server as source of truth?
In short we call api.storeSettings
to update settings in the server side.
Thanks, I understand much better now. So settings are loaded from server, and changes are pushed to server.
Can they be GET from server on access as well? Instead of returning the client copy? It may be debounced. I think the server should be the source of truth.
The issue now is only lacking of mechanism to sync settings across multiple browser tabs.
Would it be solved by having the server manage the settings and accessing setting value on client side occurs through server API?
The issue now is only lacking of mechanism to sync settings across multiple browser tabs.
Would it be solved by having the server manage the settings and accessing setting value on client side occurs through server API?
One thing we can do is using ws message to boardcast setting change to all clients.
Yes it seems that is good. I did not fully understand the trade offs before.
For this
- Custom node developers can more easily communicate between backend and frontend bidirectionally
- Custom node developers can create settings in the UI from the backend
There may be a better solution
Is there an existing issue for this?
What would your feature do ?
Settings would be centralized on the server.
Benefits:
User settings persist across browsersAlready implementedUser settings ported when moving Comfy install to new deviceAlready implementedEasier multi-user configurationAlready implementedProposed workflow
Settings are stored and loaded by the backendAlready implementedpyproject.toml