personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix activity_state never running: reload segment facets per priority group

active_facets was pre-computed once before any generators ran, so the
facets.json written by the facets generator (priority 90) was never
seen by activity_state (priority 95). Reload facets at the start of
each priority group in segment mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+8 -6
+8 -6
think/dream.py
··· 193 193 input_summary = day_input_summary(day) 194 194 enabled_facets = get_enabled_facets() 195 195 196 - if segment: 197 - # Segment mode: use facets from facets.json (if available) 198 - raw_facets = load_segment_facets(day, segment) 199 - active_facets = set(f for f in raw_facets if f in enabled_facets) 200 - else: 201 - # Daily mode: use facets with activity on this day 196 + if not segment: 197 + # Daily mode: use facets with activity on this day (stable for the run) 202 198 active_facets = get_active_facets(day) 203 199 204 200 total_prompts = sum(len(prompts) for prompts in priority_groups.values()) ··· 234 230 priority=priority, 235 231 count=len(prompts_list), 236 232 ) 233 + 234 + # Segment mode: reload active facets each group since earlier groups 235 + # (e.g., facets generator at priority 90) may have written facets.json 236 + if segment: 237 + raw_facets = load_segment_facets(day, segment) 238 + active_facets = set(f for f in raw_facets if f in enabled_facets) 237 239 238 240 spawned: list[tuple[str, str, dict]] = [] # (agent_id, name, config) 239 241