mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
Telegram advertised project/profile settings while its lifecycle and sender authorization read only global configuration. A saved scoped allowlist or disable could therefore leave a permissive global bot accepting messages. Make Telegram configuration and activation explicitly global, preserving per-user project routing. Enforce manifest scope support before plugin configuration or activation writes and return HTTP 400 for invalid saves. Pause Telegram bots and block incoming events whenever legacy scoped configurations or activation overrides exist. Preserve those files, skip attachment cleanup, notify the operator, and retain settings UI access for manual review and removal. Each event must resolve a currently enabled global bot; removed, renamed, disabled, or globally deactivated bots cannot fall back to captured settings. Add regressions for scope rejection without side effects, supported-plugin scopes, legacy settings shutdown and migration, current allowlists, and immediate revocation. Update existing administrator tests and owning docs. Validation: 339 tests and 73 subtests passed in both Conda a0 and Docker's framework runtime. A before/after reproduction showed an excluded sender reaching context creation before the fix and being blocked afterward. Restarted the live runtime and checked HTTP health and Telegram settings UI. No live Telegram message test was performed.