Files
hermes-agent/gateway/platforms
yoniebans 69c56f32ec refactor(storage): remove the handles opened beside a non-store
Every store the gateway, TUI gateway, ACP adapter, API server and delegation open is itself a storage interface handle, and each caller gets that handle back from the store it holds. The path that opened a second handle on the file of a store object that is not a handle served only stand-ins tests pin, so persistence_beside.py and its test go.

Each site keeps its store path: the TUI launch store is its own handle and a dedicated store gets a reference on its profile; the ACP session manager, the API server's override and a pinned gateway session store hand back the store itself; the runner borrows its session store's handle, and without one reads the handle its _session_db opens for the scope. A pin or override that is not a handle gets no interface handle, as the old path answered when its open failed, and nothing is left to close for it, so the runner's persistence handle sweep goes from the shutdown sequence.
2026-11-17 19:10:59 +01:00
..