Documentation
¶
Overview ¶
Package activitystore persists agent activity across Sidecar restarts.
Without it every launch rebuilds its trackers from nothing, so the first observation of an already-idle session is treated as initialization: ages all read "just now" and a turn that finished while Sidecar was closed can never surface as done. Persisting the idle transition keeps both facts true across restarts.
Index ¶
Constants ¶
const FileName = "agent-activity.json"
FileName is the store's basename inside the Sidecar state directory.
const RetainFor = 7 * 24 * time.Hour
RetainFor bounds how long an untouched entry survives. Workspaces come and go; without pruning the file would accumulate every shell ever observed.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads persisted trackers. A missing or unreadable store is not an error: activity state is a convenience, and losing it costs one poll cycle.
Only idle state is restored. A persisted working/blocked state would be re-detected within a poll anyway, and restoring it risks manufacturing a false completion when the pane's process was replaced while Sidecar was down.
Types ¶
This section is empty.