Configurable session storage path (sessions_dir, HX_SESSIONS_DIR, optional sessions_host)

This commit is contained in:
hermes committed 2026-11-15 11:09:09 +00:00
1 parent b84b6ab23a
commit 05165d7b8f
4 files changed
+54 -11

No files matched your search

+2
View File
@@ -44,6 +44,8 @@ Lens findings and affected-test results appear after each turn as a `┄ lens
Config: `~/.hx/config.toml`, overridden per project by `.hx/config.toml`. `hx config init [--project] [--force]` writes a fully commented sample with every key. Example:
**Session storage:** `sessions_dir` in config (or `HX_SESSIONS_DIR`, wins) moves sessions off `~/.hx/sessions`, e.g. to a synced or mounted cloud folder (rclone, Nextcloud, Syncthing). `~` expands; an unwritable path is an error, no silent fallback. `sessions_host = true` prefixes project folders with the host name so machines sharing one folder stay apart. Sessions are append-only JSONL: one hx per session file.
```toml
provider = "claude" # or "codex"
# claude_model = "claude-sonnet-5-5" # default: the account's latest Sonnet