fix(paths): resolve the herdr socket under the host-root run dir #38
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/socket-under-host-root"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
A socket does not belong in a config directory.
internal/paths/paths.go:CanonicalSocketPathnow resolves underRunDir()—<CLAWDIE_HOST_ROOT>/runwhen a host root is set, else$XDG_RUNTIME_DIR/herdr,else
/tmp/herdr-<uid>— instead of~/.config/herdr/herdr.sock. ExplicitsessionNameand theHERDR_SOCKET_PATH/HERDR_SESSIONoverrides areunchanged.
Tests
go test ./internal/paths/→ ok, incl. newTestSocketPathNotInConfigDir(regression guard) and
TestSocketPathRuntimeDir.go vet ./internal/paths/andgofmtclean;go build ./internal/...ok.(
go build ./...linkslibghostty-vt.a, absent in this env — pre-existing.)Rule: colibri
docs/wiki/host-paths.md(light mode = host root; hive = colibri service).