You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sync): fix a session's source machine at first ingestion
Resolve the machine for a discovered session from the configured filesystem
root that produced it, and persist that label once. Every later write keeps the
stored value: ordinary reparses, appends, watcher refresh, provider refresh,
and trash handling all retain the database row's machine rather than adopting a
newly configured label. During sync --full the archive store points at the
original archive while e.db is the fresh replacement, so a full rebuild copies
existing labels forward instead of relabeling.
Editing a source label therefore affects only sessions discovered afterward.
Because relabeling is no longer part of sync, this drops the machine-only
update for trashed sessions, the all-machines baseline scan, and the second
ownership baseline index keyed without machine. Watch reconciliation continues
to use the baseline for the machine that originally admitted the session, so
per-event work stays bounded by the changed batch.
The previous approach chased reattribution through each new writer, trash path,
snapshot path, and reconciliation edge, which kept widening the
persistent-archive surface and reintroducing consistency bugs.
0 commit comments