mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(security): use in-memory set for permanent allowlist save
This commit is contained in:
parent
f75b1d21b4
commit
40bc7216e1
1 changed files with 1 additions and 1 deletions
|
|
@ -295,6 +295,6 @@ def check_dangerous_command(command: str, env_type: str,
|
|||
elif choice == "always":
|
||||
approve_session(session_key, pattern_key)
|
||||
approve_permanent(pattern_key)
|
||||
save_permanent_allowlist(load_permanent_allowlist() | {pattern_key})
|
||||
save_permanent_allowlist(_permanent_approved)
|
||||
|
||||
return {"approved": True, "message": None}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue