anthropics / anthropics/claude-code

[BUG] Scheduled-task sessions never register with Remote Control / no session appears in mobile app

オープン
#92,972 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:desktop area:routines duplicate platform:windows regression
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

When a scheduled task (created via the scheduled-tasks feature, whether recurring cron or a one-time fireAt) executes, the task runs successfully — list_scheduled_tasks shows lastRunAt updating correctly — but the resulting session never appears in the Remote Control session list on the Claude mobile app (Code tab). Any PushNotification calls made during the run are also never delivered to the phone. This happens even with "Connect new sessions to Remote Control" enabled in Desktop app settings.

### What Should Happen?

The scheduled-task session should register with Remote Control the same way a normal interactive session does, appear in the mobile app's session list, and any push notifications sent during the run should reach the phone.

### Error Messages/Logs

```shell
No error is surfaced anywhere. The task simply completes silently with no corresponding Remote Control session ever created.
```

### Steps to Reproduce

1. In Claude Desktop app, enable Settings > Claude Code > Local sessions > "Connect new sessions to Remote Control"
2. Create a scheduled task (via the scheduled-tasks feature) with a one-time fireAt a few minutes in the future, with a prompt that just calls the PushNotification tool with a test message
3. Wait for the fireAt time to pass, then check list_scheduled_tasks — lastRunAt is updated, confirming the task executed
4. Open the Claude mobile app > Code tab > session list
5. Observe: no new session appears for this run, and no push notification is received, even though the task executed successfully

Additionally, two long-running production scheduled tasks show the same pattern in real usage: their last visible mobile-side session entries stop around 2026-09-03/04, while lastRunAt kept updating daily through 2026-09-08 — indicating the session/push registration silently stopped working around that date while the task itself kept running.

### Claude Model

None

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

Unknown exact version — was working normally until approximately 2026-09-03/04

### Claude Code Version

2.1.266 (Claude Code)

### Platform

Anthropic API

### Operating System

Windows

### Terminal/Shell

PowerShell

### Additional Information

Issue occurs via Claude Desktop App on Windows, not terminal-specific

Image
Image

Image

Image

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

No files or tests are named. Start by reproducing the one-time scheduled task and trace scheduled-task execution through Remote Control session registration and PushNotification delivery; done means the run creates a mobile-visible session and delivers its notification, while interactive sessions remain unaffected.

索引モデルが issue の本文から書いたものです。

評価

領域
backend, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。