Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix ProjectIDForPath to make relative paths absolute before matching

Cursor Agent885fb516c0d0
diff --git a/cli/beacon/internal/learning/store.go b/cli/beacon/internal/learning/store.go
index f05e01b7..025c5e54 100644
--- a/cli/beacon/internal/learning/store.go
+++ b/cli/beacon/internal/learning/store.go
@@ -238,7 +238,10 @@ func (s *Store) ProjectIDForPath(path string) (string, error) {
if trimmed == "" {
return "", nil
}
- cleaned := filepath.Clean(trimmed)
+ cleaned, err := filepath.Abs(trimmed)
+ if err != nil {
+ return "", err
+ }
projects, err := s.KnownProjects()
if err != nil {
return "", err