mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-17 14:42:06 +00:00
The sync _session_has_compression_in_flight sat on the message hot path and blocked the event loop twice: under session_store._lock during _ensure_loaded_locked (JSON read) and via db.get_compression_lock_holder (SQLite SELECT). Async-ify the method and offload both sources via asyncio.to_thread; await the call site in _handle_active_session_busy_message.
15 lines
644 B
JSON
15 lines
644 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(systemctl --user status hermes-gateway.service)",
|
|
"Bash(journalctl --user -u hermes-gateway.service --no-pager --since \"6:00\")",
|
|
"Bash(journalctl --user -u hermes-gateway.service --no-pager --since \"08:31\")",
|
|
"Bash(journalctl --user -u hermes-gateway.service --no-pager --since \"08:30\")",
|
|
"Bash(journalctl --user -u hermes-gateway.service --no-pager --since \"08:00\")",
|
|
"Bash(MAIN_PID=3163287 *)",
|
|
"Read(//proc/3163287/**)",
|
|
"Bash(sudo -S timeout 3 strace -p 3163287 -e trace=futex -f -o /tmp/strace_main.txt)",
|
|
"Read(//tmp/**)"
|
|
]
|
|
}
|
|
}
|