Skip to content

[Bug] Dreaming cron task executes in isolated but not main sessions #68972

Description

@raydoomed

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

  1. Configure a dreaming cron job with sessionTarget main
  2. Trigger the cron at its scheduled time
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions