Skip to content

Cannot create a new scheduled task from within a scheduled task session #34931

Description

@akikosuzuki2009-gif

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When attempting to schedule a follow-up task during an active scheduled task session, the system returned:

"Cannot create scheduled tasks from within a scheduled task session."

This restriction is unexpectedly limiting — a common use case is for a scheduled task to queue a follow-up task based on its findings. There is no apparent technical reason this should be blocked, and the error message provides no workaround.

Steps to reproduce:

Create a scheduled task that runs once (one-time fireAt)
When the task fires and the session opens, attempt to create another scheduled task
Error is returned
Expected behavior: Scheduled tasks should be able to create follow-up scheduled tasks.

Environment: Claude Code on Windows 11

What Should Happen?

When attempting to schedule a follow-up task during an active scheduled task session, the system returned:

"Cannot create scheduled tasks from within a scheduled task session."

This restriction is unexpectedly limiting — a common use case is for a scheduled task to queue a follow-up task based on its findings. There is no apparent technical reason this should be blocked, and the error message provides no workaround.

Steps to reproduce:

Create a scheduled task that runs once (one-time fireAt)
When the task fires and the session opens, attempt to create another scheduled task
Error is returned
Expected behavior: Scheduled tasks should be able to create follow-up scheduled tasks.

Environment: Claude Code on Windows 11

Error Messages/Logs

When attempting to schedule a follow-up task during an active scheduled task session, the system returned:

"Cannot create scheduled tasks from within a scheduled task session."

This restriction is unexpectedly limiting — a common use case is for a scheduled task to queue a follow-up task based on its findings. There is no apparent technical reason this should be blocked, and the error message provides no workaround.

Steps to reproduce:

Create a scheduled task that runs once (one-time fireAt)
When the task fires and the session opens, attempt to create another scheduled task
Error is returned
Expected behavior: Scheduled tasks should be able to create follow-up scheduled tasks.

Environment: Claude Code on Windows 11

Steps to Reproduce

When attempting to schedule a follow-up task during an active scheduled task session, the system returned:

"Cannot create scheduled tasks from within a scheduled task session."

This restriction is unexpectedly limiting — a common use case is for a scheduled task to queue a follow-up task based on its findings. There is no apparent technical reason this should be blocked, and the error message provides no workaround.

Steps to reproduce:

Create a scheduled task that runs once (one-time fireAt)
When the task fires and the session opens, attempt to create another scheduled task
Error is returned
Expected behavior: Scheduled tasks should be able to create follow-up scheduled tasks.

Environment: Claude Code on Windows 11

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.74

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions