Files
hermes-agent/plugins/platforms
kshitijk4poor 31a161a6d2 fix(profiles): plugin cache and state writers never recreate a deleted profile home
Four writers under get_hermes_home() still created their directory with a raw
mkdir(parents=True). A gateway or plugin process bound to a named profile that
was deleted or renamed meanwhile brought profiles/<name>/ back on its next
write (probed on #158270's head by @xytxg and @BearHuddleston; tracker #155595 U3).

They now go through mkdir_under_hermes_home, the #158270 boundary:
- plugin host extraction cache (cache/plugin_host/model-providers/*.json):
  skipped, and the extracted payload is still returned;
- Discord slash-command sync state: the path helper no longer creates the
  dir. Reads need none, and the write's atomic_json_write already creates it
  through the boundary. A refused write ends in the sync's existing
  "Slash command sync failed" warning;
- Google Chat bot-id cache and the router catalog disk mirror: their
  existing OSError / Exception handlers turn the refusal into a skip.

Each gets a delete+rename regression that fails on main and on a raw-mkdir
mutant.

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
2026-11-23 15:16:35 +05:30
..
…
…
…
…
…