Home/Q&A/My Claude Code task stopped halfway. How do I work out what went wrong?

My Claude Code task stopped halfway. How do I work out what went wrong?

Updated · airankrush

Direct answer

You can work it out by checking four places in order: the last screen of the session, account usage, whether the terminal is still there, and whether the machine slept or restarted. Decide which category it is first, then decide whom to contact.

Basis

  • It is waiting for you: the last screen is sitting on a permission prompt or a question. This is not a fault; the task is just waiting for input. It is the most common reason for hours with no activity.
  • The account side: the last screen is a message that a usage limit has been reached or an API error. That is about the account's allowance or the provider's status and has nothing to do with the machine. Switching machines or restarting will not fix it.
  • The terminal side: the window is gone and tmux ls shows no matching session, which means the process was ended. The window may have been closed, the user logged out, or the machine restarted.
  • The machine side: a very short uptime means it restarted. The system power log (pmset -g log) records sleep and wake events; if they line up with when the task stopped, sleep was the cause.

Information as of .

Boundaries: when the answer is different

Be clear about whom to contact. Account allowance, an unavailable model or an expired login are between you and the provider; we do not promise any allowance and cannot see your account. An unexplained restart, abnormal sleep settings or a network that is down for a long time should go to our support, with the times. API errors caused by brief network glitches can involve both sides, and a record of when it happened is more useful than guessing. The power log is long and its format varies between system versions; you only need the few lines around the time the task stopped. Do not change the system-wide power settings to prevent sleep. caffeinate on the individual command is enough, and if you want to change global settings, ask support first.

How to do it

  1. Get back into the session, read the exact text of the last screen, and classify it: waiting, allowance, error, or vanished.
  2. Waiting: answer it, and before the next task set the range of actions it is allowed to take.
  3. Allowance or login errors: check usage and status on your account page.
  4. Vanished: run tmux ls and uptime to tell whether the window was closed or the machine restarted.
  5. Suspect sleep: look for entries at the matching time in the power log.
  6. If it is a machine problem: contact support with the machine name and the times.

Use case

This question belongs to the use case: Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A