Files
beads/cmd/bd/daemon_autostart.go
aleiby 028921b04a fix(daemon): prevent stack overflow on empty database path (#1288) (#1313)
When metadata.json has an empty database field and no beads.db file exists,
filepath.Dir("") returns "." which causes lock file operations to use the
current directory instead of the beads directory. This could lead to stack
overflow or unexpected behavior.

Add early validation in tryAutoStartDaemon to check if dbPath is empty and
return false gracefully, consistent with other early-return conditions.
2026-01-25 17:59:57 -08:00

21 KiB