Bug Description
Changes made through the WebUI are not written to disk. The config file cmd_config.json is only updated in memory, so all changes are lost after container restart.
Environment
- AstrBot version: v4.18.0
- Deployment: Docker container
Steps to Reproduce
- Open AstrBot WebUI
- Change any setting (e.g. default LLM provider)
- Click Save
- Check the modification timestamp of
data/cmd_config.json — it does not change
- Restart the AstrBot container
- The setting reverts to the previous value
Expected Behavior
Saving in WebUI should write the updated config to data/cmd_config.json on disk immediately.
Actual Behavior
cmd_config.json timestamp remains unchanged after saving. Settings only persist in memory and are lost on restart.
Workaround
Manually edit data/cmd_config.json directly and restart the container.
Bug Description
Changes made through the WebUI are not written to disk. The config file
cmd_config.jsonis only updated in memory, so all changes are lost after container restart.Environment
Steps to Reproduce
data/cmd_config.json— it does not changeExpected Behavior
Saving in WebUI should write the updated config to
data/cmd_config.jsonon disk immediately.Actual Behavior
cmd_config.jsontimestamp remains unchanged after saving. Settings only persist in memory and are lost on restart.Workaround
Manually edit
data/cmd_config.jsondirectly and restart the container.