Skip to content

Canceled tasks continue running in background and can still open PRs, causing token exhaustion #549

Description

@mustafagoksever

Description

When the system is first deployed/brought up, tasks start automatically without user initiation. After canceling these tasks, they continue running in the background despite showing as canceled.

In this case, 3 jobs that were canceled still opened PRs, consuming all available Claude agent tokens.

Steps to Reproduce

  1. Deploy the system for the first time
  2. Observe that tasks start automatically without user action
  3. Cancel the running tasks via UI
  4. Despite showing as canceled, the tasks continue executing in the background
  5. Canceled tasks open PRs and consume agent tokens

Expected Behavior

  • Canceled tasks should immediately stop execution
  • Canceled tasks should not be able to open PRs or perform agent actions
  • Tasks should not start automatically on first deployment without user consent

Environment

  • Claude agent
  • First-time deployment

Impact

Complete token exhaustion due to phantom task execution, preventing any further work until tokens are reset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions