claude-code - 💡(How to fix) Fix [BUG] Scheduled task sidebar badge counts do not refresh after on-disk cleanup; require app restart [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60553Fetched 2026-05-20 03:55:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

Error Messages/Logs

Root Cause

This is a Claude Desktop (Cowork mode) bug, not a CLI bug — selecting "Other" for Terminal because no Cowork option exists in the dropdown.

RAW_BUFFERClick to expand / collapse

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?

The "X new" badge counts shown next to each task under the Scheduled section of the Claude Desktop sidebar (e.g., "Hourly inbox triage — 562 new") do not refresh when the underlying session transcript files are deleted from disk.

Each scheduled-task run creates two artifacts on disk under: ~/Library/Application Support/Claude/local-agent-mode-sessions/<userId>/<workspaceId>/

  • local_<uuid>/ (per-run working directory)
  • local_<uuid>.json (per-run transcript, ~2 MB each, contains scheduledTaskId + title)

The sidebar badge counts appear to be computed from the count of local_<uuid>.json files whose scheduledTaskId matches each task. Once those files are deleted (whether by a user script, a LaunchAgent, or any external cleanup), the count in the sidebar does NOT decrement. The badge keeps showing the pre-cleanup number indefinitely.

Only quitting and reopening the Claude Desktop app forces a re-scan; on relaunch the badge counts match disk reality.

This is adjacent to but distinct from #35717 (which is about completed/disabled task entries themselves persisting in the sidebar). This report is specifically about the unread-count badges on tasks that remain active.

What Should Happen?

The sidebar badge counts should reactively update when the underlying transcript files are added or removed, without requiring an app restart. At minimum, opening the Scheduled section, clicking a task, or focusing the app window should trigger a re-scan and update the counts.

A user-visible "reload sidebar" action (menu item, keyboard shortcut, or auto-invalidation on window focus) would resolve this and the related #35717 / #47795 reports.

Error Messages/Logs

Steps to Reproduce

  1. Have one or more scheduled tasks that have accumulated unread runs visible in the Scheduled sidebar (e.g., "Hourly inbox triage — 562 new").
  2. Quit nothing; leave Claude Desktop running.
  3. In a separate terminal, delete some of the per-run transcript files: ls ~/Library/Application\ Support/Claude/local-agent-mode-sessions///local_*.json | head -100 | xargs rm
  4. Return to Claude Desktop. Look at the Scheduled sidebar. → Observed: badge counts unchanged from before the deletion.
  5. Quit Claude (Cmd+Q) and relaunch. → Observed: badge counts now reflect post-deletion disk state.

Tested by deleting 629 transcript files (941 MB freed). Pre-cleanup badges: Hourly inbox triage — 562 new Daily spam review — 17 new Daily briefing — 13 new Unsubscribe — 10 new After cleanup (before restart): identical. After restart: counts dropped to reflect remaining transcripts on disk.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude 1.7196.3 (ca0c62) 2026-05-16T23:42:08.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

This is a Claude Desktop (Cowork mode) bug, not a CLI bug — selecting "Other" for Terminal because no Cowork option exists in the dropdown.

OS: macOS (Apple silicon, build details available on request)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Scheduled task sidebar badge counts do not refresh after on-disk cleanup; require app restart [1 participants]