[DOCS] `/loop` docs omit pending wakeup cancellation and resume label behavior

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Apr 17, 2026 · closed Jun 4, 2026

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/scheduled-tasks

Section/Topic

How scheduled tasks run and /loop wakeup behavior while a run is waiting to resume

Current Documentation

The scheduled-tasks page currently says:

The scheduler checks every second for due tasks and enqueues them at low priority. A scheduled prompt fires between your turns, not while Claude is mid-response. If Claude is busy when a task comes due, the prompt waits until the current turn ends.

The commands reference currently says:

/loop [interval] [prompt] | Skill. Run a prompt repeatedly while the session stays open. Omit the interval and Claude self-paces between iterations. Omit the prompt and Claude runs an autonomous maintenance check, or the prompt in .claude/loop.md if present.

The terminal guide currently says:

* Press Esc to interrupt Claude if it's running.

I could not find any code.claude.com page that explains what a pending /loop wakeup looks like before it resumes, that pressing Esc cancels those pending wakeups, or that the resume event now displays as Claude resuming /loop wakeup.

What's Wrong or Missing?

Changelog v2.1.113 added user-visible /loop wakeup behavior, but the docs still stop at generic scheduling details.

Users currently cannot learn from the docs:

A. That /loop wakeups can sit pending while Claude finishes the current turn

The docs say due prompts wait until the current turn ends, but they do not explain this as a distinct pending /loop wakeup state that users may need to recognize and manage.

B. That pressing Esc now cancels pending /loop wakeups

The generic Esc documentation only says it interrupts Claude while it is running. It does not mention that Esc also cancels a queued /loop wakeup before that wakeup resumes.

C. What text users should expect to see when a /loop wakeup resumes

The docs do not mention the new Claude resuming /loop wakeup label, so users have no documented explanation for that transcript/status text.

Suggested Improvement

Add a short /loop wakeup lifecycle note to https://code.claude.com/docs/en/scheduled-tasks, near How scheduled tasks run, that explains:

  • when a due /loop run becomes a pending wakeup instead of starting immediately
  • that pressing Esc cancels pending /loop wakeups
  • that resumed wakeups are labeled Claude resuming /loop wakeup

Also add a brief note or cross-reference in https://code.claude.com/docs/en/commands so users reading the /loop command entry know that queued wakeups can be cancelled with Esc.

For example:

If a /loop run becomes due while Claude is still busy, the wakeup waits until the current turn ends. While that wakeup is pending, press Esc to cancel it. When it resumes, Claude Code labels the run Claude resuming /loop wakeup so you can tell it apart from a normal prompt.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

| Page | Context |
|------|---------|
| https://code.claude.com/docs/en/scheduled-tasks | Primary /loop and scheduler behavior documentation; should explain pending wakeups, Esc cancellation, and the resume label |
| https://code.claude.com/docs/en/commands | Primary command reference for /loop; should link to or summarize the pending wakeup behavior |
| https://code.claude.com/docs/en/terminal-guide | Generic Esc interruption docs; useful cross-reference because /loop now adds a queued-wakeup cancellation case |

Total scope: 3 pages affected

Source: Changelog v2.1.113

Exact changelog entry: Improved /loop: pressing Esc now cancels pending wakeups, and wakeups display as "Claude resuming /loop wakeup" for clarity

View original on GitHub ↗

3 Comments

coygeek · 4 months ago

Still relevant as of 2026-05-18. This documentation gap has not been addressed in the docs yet.

coygeek · 4 months ago

Issue #50122 Verification

Title: [DOCS] /loop docs omit pending wakeup cancellation and resume label behavior
Issue Date: 2026-04-17
Verification Date: 2026-06-04
Status: RESOLVED

---

Issue Summary

This issue reports that the /loop and scheduled-task documentation did not explain three wakeup-lifecycle details: that a due /loop run can wait pending until the current turn ends, that pressing Esc cancels a pending /loop wakeup, and that resumed wakeups display the label Claude resuming /loop wakeup.

---

Verification Results

Claim 1: The docs do not explain that /loop wakeups can wait pending until Claude finishes the current turn

Status: RESOLVED

At https://code.claude.com/docs/en/scheduled-tasks, line 169, the docs state: If Claude is busy when a task comes due, the prompt waits until the current turn ends.

At https://code.claude.com/docs/en/tools-reference, line 37, the docs further state: The pending wakeup appears in session_crons in Stop hook input.

Verdict: The current docs now describe both the wait-until-idle behavior and the existence of a pending wakeup state for /loop.

---

Claim 2: The docs do not explain that pressing Esc cancels a pending /loop wakeup

Status: RESOLVED

At https://code.claude.com/docs/en/scheduled-tasks, line 127, the docs state: To stop a /loop while it is waiting for the next iteration, press Esc. This clears the pending wakeup so the loop does not fire again.

At https://code.claude.com/docs/en/commands, line 90, the /loop command entry points readers to the scheduled-tasks page: See Run prompts on a schedule.

Verdict: The current scheduled-tasks documentation explicitly says that Esc clears a pending /loop wakeup, and the /loop command reference links readers to that page.

---

Claim 3: The docs do not mention the Claude resuming /loop wakeup label users see when a wakeup resumes

Status: RESOLVED

At https://code.claude.com/docs/en/changelog, line 1116, the docs state: Improved /loop: pressing Esc now cancels pending wakeups, and wakeups display as "Claude resuming /loop wakeup" for clarity.

Verdict: The current documentation set now explicitly names the resume label, so this specific claim is no longer current.

---

Current State

| Claim | Status |
|-------|--------|
| Pending /loop wakeups while Claude is busy are undocumented | RESOLVED |
| Esc cancellation of pending /loop wakeups is undocumented | RESOLVED |
| The Claude resuming /loop wakeup label is undocumented | RESOLVED |

---

Suggested Fix

N/A - issue has been resolved.

---

References

---

Conclusion & Recommendation

Primary Concern: The issue reported that /loop wakeup behavior and user-visible wakeup text were not documented clearly enough for readers to understand pending wakeups, cancellation, and resumed-run labeling.

Resolution Status: RESOLVED

Recommendation: CLOSE

The reported documentation gaps are now covered in the current docs set. Pending wakeups, Esc cancellation, and the Claude resuming /loop wakeup label are all documented with current evidence.

github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.