mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-06 13:26:40 +00:00
Chromium debug profile, media-cache and vision/computer-use cache dirs were created with bare makedirs inheriting the umask (0755); their files landed 0644. Under the documented HERMES_HOME_MODE=0701 traversal hatch those stores (Cookies, Login Data, screenshots, inbound media) were readable by every other local account. Dirs are now created owner-only (0700) with the mode passed to mkdir (no post-chmod window) and reconciled via the house hermes_cli.config._secure_dir / _secure_file policy helpers, which keep the managed/NixOS group-share carve-out and HERMES_UID/HERMES_GID ownership. Cache files are written 0600 via os.open. Deleting a session also left its journaled in-flight turn tail (user prompt + tool calls) in localStorage to age out on its own; purgeInFlightTurnJournals now runs on both delete surfaces (sidebar removeSession and Settings permanent delete), draining every id the delete holds. Refs #77486