Skip to content

[Bug] WebUI config changes not persisted to disk (cmd_config.json not updated on save) #9095

Description

@Joy-LQ

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

  1. Open AstrBot WebUI
  2. Change any setting (e.g. default LLM provider)
  3. Click Save
  4. Check the modification timestamp of data/cmd_config.json — it does not change
  5. Restart the AstrBot container
  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webuiThe bug / feature is about webui(dashboard) of astrbot.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions