Skip to content

Admin commands (/model, /loop, /policy) don't persist to config.yaml #14

Description

@cthellla

Description

Admin commands like /model, /loop, /policy update the runtime config in memory but don't write changes to config.yaml. This means:

  • Changes are lost on restart
  • WebUI shows stale values until page refresh (and even then shows old values since it reads from disk)
  • No sync between Telegram admin commands and WebUI config

Steps to reproduce

  1. Set model via /model deepseek/deepseek-r1 in Telegram
  2. Open WebUI → LLM tab → Model still shows the previous value
  3. Restart the agent → model reverts to whatever is in config.yaml

Expected behavior

Admin command changes should persist to config.yaml so they survive restarts and stay in sync with WebUI.

Possible approach

Use readRawConfigsetNestedValuewriteRawConfig pattern (already used in WebUI config routes and owner detection in index.ts).

Affected commands

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions