a digital entity named phi that roams bsky phi.zzstoatzz.io
2
fork

Configure Feed

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

fix: feed scans were blocking idle exploration

feed scan tasks were added to _background_tasks, so _can_explore()
always saw len(_background_tasks) > 0 and exploration never fired.
feed scans are lightweight ingestion, not cognitive work — they
shouldn't gate the idle check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+3 -4
+3 -4
src/bot/services/notification_poller.py
··· 154 154 except Exception as e: 155 155 logger.error(f"thought post error: {e}", exc_info=settings.debug) 156 156 157 - # feed scanning — background task, never blocks notifications 157 + # feed scanning — fire-and-forget, does NOT count as background work 158 + # (so it doesn't block idle exploration) 158 159 try: 159 160 if self._poll_count % settings.feed_scan_interval == 0: 160 - task = asyncio.create_task(self._scan_feeds()) 161 - self._background_tasks.add(task) 162 - task.add_done_callback(self._background_tasks.discard) 161 + asyncio.create_task(self._scan_feeds()) 163 162 except Exception as e: 164 163 logger.error(f"feed scan error: {e}", exc_info=settings.debug) 165 164