agent: v3.0 — fix cfg scope bug in execute_command (update + shell commands)

self_update(cfg) and shell allow_shell_commands check both referenced cfg
from run() scope, but execute_command() is a standalone function. Fixed by
calling load_config() locally in each branch that needs it.
This commit is contained in:
2026-06-11 21:10:08 +00:00
parent 2767a858dd
commit 8b7f597e76
3 changed files with 214 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
6c93ea50f3a91472444a10838b89d4222b8378cd153efee4ed9f75d7d5fb25b2
0a80b4a5a240647f7169b1245bd534429e819f090404b8bbb12e69bbf1e37867 /home/jarvis.orbishosting.com/public_html/agent/jarvis-agent.py