The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Fix partial List errors being silently dropped in cursor session collector
Cursor Agent300006e1147c
diff --git a/cli/beacon/internal/cursorsession/collect.go b/cli/beacon/internal/cursorsession/collect.goindex d056b0d7..7ae92f3a 100644--- a/cli/beacon/internal/cursorsession/collect.go+++ b/cli/beacon/internal/cursorsession/collect.go@@ -115,9 +115,9 @@ func CollectOnce(opts CollectOptions) (summary Summary, err error) {if err != nil {return summary, err}- refs, err := store.List()- if err != nil {- return summary, err+ refs, listErr := store.List()+ if listErr != nil && len(refs) == 0 {+ return summary, listErr}summary.Traces = len(refs)state, err := LoadState(opts.StatePath)@@ -131,6 +131,10 @@ func CollectOnce(opts CollectOptions) (summary Summary, err error) {}()var errs []error+ if listErr != nil {+ summary.Errors+++ errs = append(errs, listErr)+ }for _, ref := range refs {changed, collectErr := collectTrace(store, ref, state, opts, &summary)if collectErr != nil {diff --git a/cli/beacon/internal/cursorsession/store.go b/cli/beacon/internal/cursorsession/store.goindex d31416c9..b9ac5bcb 100644--- a/cli/beacon/internal/cursorsession/store.go+++ b/cli/beacon/internal/cursorsession/store.go@@ -90,10 +90,7 @@ func (s *Store) List() ([]TraceRef, error) {}return refs[i].ID < refs[j].ID})- if len(refs) == 0 && len(errs) > 0 {- return refs, errors.Join(errs...)- }- return refs, nil+ return refs, errors.Join(errs...)}func (s *Store) listGlobalStorage() ([]TraceRef, error) {