Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.35 ·

Optional Auto-Exit on Idle

Entry
JSON All of v2.0.35
EntryKind: in v2.0.35,
ChangesSection of the release

What: Claude Code can now automatically exit after a configured period of inactivity.

How to use:

# Set idle timeout to 60 seconds (60000 milliseconds)
export CLAUDE_CODE_EXIT_AFTER_STOP_DELAY=60000
claude

# Claude Code will now exit automatically after 60 seconds of no activity

Details:

  • Disabled by default - only activates when CLAUDE_CODE_EXIT_AFTER_STOP_DELAY environment variable is set
  • Value is in milliseconds (e.g., 60000 = 60 seconds)
  • Timer resets whenever Claude Code processes a command
  • Useful for automated testing, CI/CD pipelines, or managing long-running sessions
  • Evidence: XA9() at line 488655, exit message at line 488668
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded CLAUDE_CODE_EXIT_AFTER_STOP_DELAY environment variable to automatically exit SDK mode after a specified idle duration, useful for…

See this entry in the whole of v2.0.35 →

Feedback