{"version":"2.1.331","anchor":"headless-cron-scheduler-waits-for-the-sessions-page-to-be-t","canonical_anchor":"headless-cron-scheduler-waits-for-the-sessions-page-to-be-t","heading":"Scheduled tasks in headless mode can now wait before starting","tier":"internal","area":"Scheduled Tasks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/headless-cron-scheduler-waits-for-the-sessions-page-to-be-t","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Scheduled tasks in headless mode can now wait before starting\n\nIn headless mode the scheduler for recurring tasks can now hold off until the session is picked up, and adding a directory refreshes `--add-dir` settings\n\n**Unclear.** It is not stated which sessions are marked to wait, so it is unclear whose scheduled tasks are delayed.\n\n**What**\n\nHeadless mode is when Claude Code runs without its interactive screen, for example from a script. In that mode, the scheduler that runs recurring timed tasks used to start straight away. Some sessions are now marked to wait, and for those the scheduler does not start until the session has been taken up.\n\nAdding a working directory, including through `register_repo_root`, now also refreshes the settings that come from `--add-dir`, the option that gives Claude access to extra folders.\n\n**Why**\n\nScheduled tasks in a resumed headless session may fire later than they used to, once the session is actually running.\n\n- Area: Scheduled Tasks\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}