beads/internal/daemon
wolf 3ecffa111b fix: relocate daemon socket for deep paths (GH#1001)
On Unix systems, socket paths are limited to 104 chars (macOS) or 108 chars
(Linux). Deep workspace paths like /Volumes/External Drive/Dropbox/...
would exceed this limit and cause daemon startup failures.

This fix:
- Adds ShortSocketPath() which computes /tmp/beads-{hash}/bd.sock for
  paths that would exceed the limit
- Keeps backward compatibility: short paths still use .beads/bd.sock
- Updates daemon discovery to check both locations
- Uses SHA256 hash of canonical workspace path for unique directories

Closes GH#1001

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 12:30:31 -08:00
..
discovery.go fix: relocate daemon socket for deep paths (GH#1001) 2026-01-10 12:30:31 -08:00
discovery_test.go Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
discovery_unit_test.go Improve internal/daemon test coverage from 27.3% to 72.0% (bd-n386) 2025-12-23 22:39:22 -08:00
kill_unix.go Implement bd daemons killall and logs (bd-153, bd-152) 2025-10-26 19:03:00 -07:00
kill_wasm.go WIP: WASM port - switch to ncruces/go-sqlite3, add WASM stubs 2025-11-02 22:17:08 -08:00
kill_windows.go fix(windows): daemon stop/kill now uses proper Windows API (GH#992) 2026-01-09 23:04:55 -08:00
registry.go fix(daemon): normalize paths for case-insensitive filesystem comparison (GH#869) 2026-01-03 13:22:52 -08:00
registry_test.go fix(slot): add cross-beads prefix routing to bd slot set (bd-hmeb) 2026-01-04 15:21:36 -08:00