mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-24 02:36:27 +00:00
9d22ea7ff4
Using /dev/shm caused cross-instance cache pollution: any server started on a different port (QA harness on 8789, test runs) would write its own provider set to the shared file, and the production server on 8787 would load it on next restart — showing only OpenRouter (or whatever the test environment had configured) instead of the real provider list. Moving the cache file to STATE_DIR / "models_cache.json" gives each server instance its own isolated cache (each port uses a different HERMES_WEBUI_STATE_DIR). Also fixes macOS/Windows portability where /dev/shm does not exist. Co-authored-by: nesquena-hermes <nesquena-hermes@users.noreply.github.com>