Unpublished Agent Still Appears as Scheduled (“Untitled Agent”) in History

Description

I previously had an AI agent that was published and scheduled to run daily. After some time, I unpublished this agent.

However, in the History → Upcoming section, I still see an entry indicating a daily scheduled run. The agent appears as “Untitled Agent” with a recurring schedule (e.g., “Every day at midnight (Istanbul)”).

Although this entry suggests the agent is scheduled, the agent is not actually executing anymore. This seems to be a UI/state inconsistency rather than a functional execution issue.

Steps to Reproduce

  1. Create and publish an agent with a daily schedule.
  2. Allow it to run at least once.
  3. Unpublish the agent.
  4. Navigate to the History section.
  5. Check the Upcoming scheduled runs.

Actual Behavior

  • The unpublished agent still appears in the Upcoming section.
  • It is displayed as “Untitled Agent”.
  • It shows a daily schedule as if still active.
  • The agent does not actually run.

Expected Behavior

  • Once an agent is unpublished, all associated scheduled runs should be removed.
  • The agent should no longer appear in the Upcoming section.
  • No placeholder (e.g., “Untitled Agent”) should remain.

Impact

  • Creates confusion about whether the agent is still active.
  • Reduces trust in the scheduling system’s accuracy.
  • Could lead users to believe unintended executions may occur.

Attachments

  • Screenshot showing the “Untitled Agent” still scheduled in the History section.