[BUG] Dynamic /loop persists across session compaction without user re-invocation

Resolved 💬 2 comments Opened May 6, 2026 by tomazkl Closed Jun 3, 2026

Preflight Checklist

  • [x] I have searched existing issues 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?

Claude Code 2.1.131: dynamic /loop persists across session compaction without user re-invocation. Agent self-reports inheriting loop from a compacted summary that user never created. Wake-up cycles continue at default ~25min interval. Reproducible only via session resume + compaction; haven't isolated whether resume or compaction is the trigger.

Session ID: dc441f19-a436-4f3d-b8e0-0941034a07e0

What Should Happen?

Claude should work normally without loop since I didn't execute /loop command at all.

Error Messages/Logs

Steps to Reproduce

Don't know how to reproduce.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code 2.1.131

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗