Bug Description
The dreaming agent task is designed to run promotion logic, but when the cron job is configured with sessionTarget set to main, it incorrectly executes heartbeat checks instead of the intended dreaming/promotion logic.
Expected Behavior
- Cron job with dreaming agent task should execute promotion/dreaming logic
- In isolated sessions it works correctly
- In main sessions it incorrectly triggers heartbeat checks instead
Environment
- Plugin: memory-core
- Cron configured via dreaming config
Steps to Reproduce
- Configure a dreaming cron job with sessionTarget main
- Trigger the cron at its scheduled time
- Observe that instead of running the dreaming task, the main session executes heartbeat checks
Additional Context
When the same cron is set to sessionTarget isolated, the dreaming task runs correctly. The issue appears to be that the dreaming agent task is hardcoded to only execute in isolated sessions, causing main session executions to fall back to heartbeat behavior.
Bug Description
The dreaming agent task is designed to run promotion logic, but when the cron job is configured with sessionTarget set to main, it incorrectly executes heartbeat checks instead of the intended dreaming/promotion logic.
Expected Behavior
Environment
Steps to Reproduce
Additional Context
When the same cron is set to sessionTarget isolated, the dreaming task runs correctly. The issue appears to be that the dreaming agent task is hardcoded to only execute in isolated sessions, causing main session executions to fall back to heartbeat behavior.