Claude Code now resumes after a usage limit — unless your Mac fell asleep
If you're on a Claude subscription, recent versions of Claude Code (v2.1.234+) do something quietly great: when a usage limit stops Claude mid-task, the session waits and continues the task on its own after the limit resets. Usage limit reached · limit resets 3:45pm Continuing automatically at 3:45pm · esc to cancel That's exactly what you want for a long refactor you start before bed. There's…
Claude Code, a tool powered by Claude subscriptions, recently introduced a feature that automatically resumes tasks once a usage limit resets. This is particularly useful for long tasks like refactoring code when a user starts before bedtime. However, there's a catch - if the Mac falls asleep for more than 30 minutes during the waiting period, the user will be prompted to press Enter to continue.
This is because the wait can take several hours. To prevent the Mac from sleeping during this time, users can use a command like caffeinate -i in another terminal or caffeinate -w pid for the Claude process. When the limit resets, Claude Code sends two signals: one when it stops due to a rate limit and another when it resumes. These signals can be captured using a logger to keep track of the wait time.
A menu bar app called Lidnight can be used to automate this process by keeping the Mac awake during AI agent work and letting it sleep once the work is done. Lidnight also sends a message to the user when the wait period ends. Claude Code also provides notifications for specific events like elicitation_url_dialog and agent_needs_input.
Lidnight's AI Auto mode is free, while the Pro version offers additional features like auto-start and phone approvals for a one-time fee of $9.99.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.