Compare commits

...
Author SHA1 Message Date
Lap Tran e8447c3c28 fix: ignore herdr agent socket and session snapshots
*.sock never matched herdr.sock.agent and nothing covered
session-snapshots/, so both dirtied the working tree. The
home.activation.herdrConfigDir cleanup list already names them;
this brings .gitignore in line so a tree containing those runtime
paths reads clean.
2026-10-06 11:15:17 -04:00
hermes ca3c7fa45a Merge pull request 'fix: keep herdr runtime state out of the dotfiles working tree' (#3) from fm/fm-clone-runtime-dirt-dotfiles into main 2026-10-06 10:25:44 -04:00
Lap Tran 2bcaf5fd32 no-mistakes(document): Point herdr state-file rationale at the cleanup list 2026-10-05 23:19:25 -04:00
Lap Tran b0d7087a46 fix(rebuild): rotate herdr config.toml backup as a file target
~/.config/herdr moved from a whole-directory home.file target to a file
target, so rebuild.sh must follow. Treat ~/.config/herdr/config.toml as a
managed file backup target and stop listing ~/.config/herdr as a directory
target, otherwise a real config.toml backed up to config.toml.backup would
fail the next switch with "would be clobbered".
2026-10-05 22:58:29 -04:00
3 changed files with 8 additions and 6 deletions

No files matched your search

+2
View File
@@ -6,5 +6,7 @@ home/.config/beets/state.pickle
home/.config/herdr/.plugins.lock home/.config/herdr/.plugins.lock
home/.config/herdr/*.log home/.config/herdr/*.log
home/.config/herdr/*.sock home/.config/herdr/*.sock
home/.config/herdr/herdr.sock.agent
home/.config/herdr/session.json home/.config/herdr/session.json
home/.config/herdr/release-notes.json home/.config/herdr/release-notes.json
home/.config/herdr/session-snapshots/
+5 -5
View File
@@ -82,11 +82,11 @@ in
force = true; force = true;
}; };
# herdr treats ~/.config/herdr as both its config directory and its state # herdr treats ~/.config/herdr as both its config directory and its state
# directory: it writes herdr.sock, herdr-client.sock, herdr-server.log, # directory: it writes its sockets, logs, lock files and session state beside
# .plugins.lock, session.json and session-snapshots/ beside config.toml, and it # config.toml, and it offers no option to relocate them. Keep that directory a
# offers no option to relocate them. Keep that directory a real directory and # real directory and link only the config file - a whole-directory symlink into
# link only the config file - a whole-directory symlink into this repo makes # this repo makes every running herdr server dirty the working tree. The exact
# every running herdr server dirty the working tree. # artifact list is the cleanup below, so it cannot drift from the code.
home.file.".config/herdr/config.toml" = { home.file.".config/herdr/config.toml" = {
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/herdr/config.toml"; source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/herdr/config.toml";
force = true; force = true;
+1 -1
View File
@@ -40,6 +40,7 @@ managed=(
"$HOME/.claude/CLAUDE.md" "$HOME/.claude/CLAUDE.md"
"$HOME/.codex/AGENTS.md" "$HOME/.codex/AGENTS.md"
"$HOME/.codex/luna.config.toml" "$HOME/.codex/luna.config.toml"
"$HOME/.config/herdr/config.toml"
"$HOME/.config/opencode/AGENTS.md" "$HOME/.config/opencode/AGENTS.md"
"$HOME/.config/opencode/opencode.json" "$HOME/.config/opencode/opencode.json"
"$HOME/.config/opencode2/opencode.json" "$HOME/.config/opencode2/opencode.json"
@@ -62,7 +63,6 @@ done
for path in \ for path in \
"$HOME/.config/wezterm" \ "$HOME/.config/wezterm" \
"$HOME/.config/nvim" \ "$HOME/.config/nvim" \
"$HOME/.config/herdr" \
"$HOME/.config/opencode/skills" \ "$HOME/.config/opencode/skills" \
"$HOME/.pi/agent/themes" \ "$HOME/.pi/agent/themes" \
"$HOME/.pi/agent/extensions/calm" "$HOME/.pi/agent/extensions/calm"