claude-code - 💡(How to fix) Fix Routines: allow quiet exit that skips the unread session list [1 comments, 2 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#57778Fetched 2026-05-11 03:25:39
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

Problem

Scheduled routines (cron-based remote agents) always create an unread session in the session list, even when the routine runs and finds nothing actionable to do. This creates noise — if you have a routine that polls for a condition and it's a no-op 90% of the time, you still accumulate unread sessions you have to manually dismiss.

Proposed solution

Add a mechanism for a routine to signal "nothing to report" so the resulting session doesn't appear as unread. Some possible shapes:

  • A tool the routine can call (e.g., TaskOutput with a silent: true flag, or a dedicated SilentExit tool)
  • A convention where if the routine produces no output / exits without calling any tools, the session is auto-suppressed
  • A flag on CronCreate like suppressNoOp: true that lets the routine author opt in

The hook system already has suppressOutput and exit-code semantics for controlling visibility — extending something similar to routines would be a natural fit.

Use case

I have routines that check for conditions periodically (e.g., "are there new items to process?"). Most runs find nothing and exit cleanly. The unread badge accumulates quickly and the session list fills with no-op runs that don't need attention.

Related

  • #18544 (background task notification noise — closed as not planned, but the friction is similar)

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