Claude Code Stuck? Working, Waiting, or Frozen

AI Tutor Code··9 min read

Last updated: November 2026

Usually it is not stuck. A Claude Code session that looks stuck is in one of three states: still working, waiting for you, or genuinely frozen, and each one looks different on screen. Working shows a timer that keeps moving. Waiting shows a question, a permission prompt, a usage-limit notice or a retry countdown. Frozen is the rare case: nothing moves and the keys stop responding. Check in that order.

The short version

  • Look for a question first: an unanswered question or permission prompt is the "freeze" that has cost my students the most time, and by default it waits indefinitely.
  • Movement means work: a running timer beside the spinner, or a live row in the panel below the prompt, means look inside, not restart.
  • A real freeze is recoverable: Esc, then Ctrl+C, then close the terminal and resume. The conversation survives.

How do you tell which of the three states you are in?

Read the bottom of the screen, not the top. Almost everything that tells you what the session is doing lives near the prompt.

While Claude works in the main conversation, the line beside the spinner shows an elapsed time and, once output starts arriving, a token count, something like Deciphering… (10m 27s · ↓ 5.5k tokens). Anthropic describes that number as a live, approximate count of the output the current turn has produced, thinking included. If it is changing, the session is working, however long it has been quiet.

Waiting means something has paused the work and says so on screen: a multiple-choice question, a permission prompt, a usage-limit notice, or a retry countdown. Frozen is what is left when neither is true.

StateWhat you seeWhat to do
Working, in the main conversationA spinner line with a running timer and, once output arrives, a token countLeave it. Ctrl+O shows the tool calls, Esc stops it if it is heading the wrong way
Working, through an agent or background taskA quiet main view, with rows in the panel below the promptSelect the row and press Enter to open its transcript, or run /tasks
Waiting for your answerA multiple-choice question or a permission promptAnswer it. Neither closes on its own by default
Waiting for a usage limitUsage limit reached with a reset time, plus when Claude will continueKeep the session open. It resumes after the reset, and Esc cancels the wait
Waiting on the networkAn error label with a Retrying in countdown, or Waiting for API responseLet it retry. If it keeps coming back, check status.claude.com, then your connection, VPN or proxy
FrozenNo timer, no prompt, keys ignoredEsc, then Ctrl+C. Still frozen? Close the terminal and run claude --resume in the same folder

Two details from the interactive mode reference save a lot of confusion. Ctrl+O opens the transcript viewer, which shows detailed tool usage with a timestamp on each of Claude's messages: the quickest way to see whether anything is happening without interrupting it. And Ctrl+T is not the background view. It toggles Claude's to-do checklist. The list of running shells and agents is /tasks.

The network row can clear on its own. Per the error reference, Claude Code retries a failed request up to 10 times by default, and Waiting for API response appears after 20 seconds without data, before anything has failed.

If Claude Code is not responding at all, the troubleshooting guide says restarting does not lose the conversation: run claude --resume in the same directory. If freezes keep coming back, /doctor runs a setup checkup (claude doctor from the shell if Claude Code will not start at all), and claude --safe-mode starts a session with CLAUDE.md, plugins, MCP servers and hooks switched off. If the problem disappears there, one of your customizations is the cause.

Reading this part of the screen is a big part of the early lessons when someone learns Claude Code with a tutor, because it is the part new users look at least.

What do the two classic misreadings look like?

Both came out of recent lessons, and they are mirror images.

The first was a session everyone believed was working. At the end of a lesson, a student sent Claude Code a redesign request and left it running. Claude replied with a multiple-choice question asking which visual direction he wanted, and nobody answered it. When we reopened the session three days later, Claude's last message said it had not received his choice and could not start until he picked one. Three days, nothing built, and he had assumed the whole time that it was running or finished.

That is documented behaviour, not a glitch. Multiple-choice questions stay open until you answer them by default, and permission prompts, plan approval included, never resolve themselves while you are away. The habit my team and I teach now is boring and it works: before you leave a long task, read the last thing on screen. If it ends in a question, the task has not started.

The second misreading was the opposite: a session that looked frozen while it was working hard. Another student had asked Claude for an in-depth piece of research, Claude handed the job to an agent of its own, and the main conversation went quiet. She assumed it had stalled. Once I showed her how to move into the agent's view with the arrow keys, the answer was on screen in about a minute: the agent was busy, and the main session was waiting for it to report back.

Subagents can run in the foreground or the background. A foreground one blocks the main conversation until it finishes, and a background one runs alongside you in the panel below the prompt. Either way, each subagent sends its own requests against the same usage limits as your main conversation, so an agent you did not notice is not free just because it is quiet.

When do you use /compact, /clear or /resume?

A student asked me mid-lesson, "You just resume, right?" He was right, and his question is where the confusion starts: three commands that sound as if they overlap do quite different things to your conversation. All three are in the commands reference.

/compact keeps the same conversation but replaces the history with a summary to free up context. Give it a focus, such as /compact focus on the login bug, and per Anthropic's context window guide the summary keeps what you chose instead of what the automatic pass guesses is important. Claude Code also compacts on its own near the limit, so a full context does not end your session.

/clear starts a new conversation with empty context. The old one is not deleted: /resume brings it back, and /clear login-bug labels it in the resume picker so you can find it.

/resume inside a session opens a picker of past conversations, or jumps to one by name or ID. From a plain terminal prompt, use claude --resume, or claude -c to continue the most recent conversation in the current folder.

There is a cost difference too. /compact reads the whole conversation it summarizes, so compacting a large context is itself a large request, while /clear costs nothing.

My rule matches Anthropic's guidance. Use /clear when you switch to unrelated work, and /compact with a focus when you are staying on the same task and the context is getting heavy. When the detail really matters, write it down first: a handoff file Claude can debug from sits on disk, survives a clear, and says exactly what you wrote rather than what a summary judged important. The wider habit of one task per session is in the Claude Code best practices that actually matter.

One compaction problem does look like a freeze. Autocompact is thrashing means a file or tool output refilled the window straight after compaction, several times, so Claude Code stopped retrying. The fix is to read that file in smaller chunks, compact with a focus that drops the large output, or /clear.

How do you check which account a session is billing to?

This one was not a stuck session, but it turned up in exactly that kind of moment, and it matters more than any freeze.

A student opened a second terminal and started Claude Code. I happened to glance at his shared screen and saw "API usage billing" in the top right and "Not logged in. Run /login" at the bottom. He told me it was the first time he had seen it. A /login later the session showed his subscription again, two or three minutes in all. We never found out why it happened, and I am not going to guess. What matters is that he only spotted it because somebody else was looking at his screen.

The difference is real money. Pro and Max subscribers have Claude Code usage included in the plan, while a Console sign-in is, in the CLI reference's words, "API usage billing instead of a Claude subscription", charged per token.

There are two documented checks. Inside a session, /status shows version, model, account and connectivity, even while Claude is responding, and the authentication guide names it as the way to confirm which login method is active. From the shell, claude auth status prints your authentication status (add --text for a readable version), and reports claude.ai when you are signed in with a claude.ai account.

Make /status a habit in every new terminal session, not just the first of the day. On a work laptop it matters twice over: organizations can mix sign-in methods, and each developer is metered according to the one they used. If you are not sure who pays for what, find out before a long task, not after. The rest of the billing mechanics are in what Claude Code pricing does not tell you.

Frequently Asked Questions

Is Claude Code stuck if it has been thinking for ten minutes?

Not if the numbers are moving. The token count beside the spinner includes thinking, so a long think still shows progress. If it is thinking about the wrong thing, press Esc and redirect. For simpler tasks, a lower effort level via /effort spends less on thinking.

Why is Claude Code stuck on compacting?

Usually it is still working. Compaction is a request of its own that reads the whole conversation to write the summary, so on a full context it is a large one. If it compacts again straight away, that is the thrashing case above. Run /context: if CLAUDE.md, MCP tools and skills together outweigh the Messages row, trim what loads at startup.

Does pressing Esc lose the work Claude has already done?

No. Esc stops the current response or tool call so you can redirect, and Claude keeps the work done so far. If you want to go further back, pressing Esc twice on an empty prompt opens the rewind menu.

Can Claude Code carry on if I do not answer its question?

Only if you tell it to. The askUserQuestionTimeout setting, also in /config as Question auto-continue timeout, closes an unanswered multiple-choice question after 60 seconds, 5 minutes or 10 minutes, and Claude proceeds on its own judgment. Permission prompts never time out. While you are learning I would leave it off: Claude guessing at a choice it asked you to make is how you get work you did not want.

Do background agents use up my plan?

Yes, against the same limits as your main conversation. On a Pro, Max, Team or Enterprise plan, /usage attributes recent usage to subagents, the same breakdown I walk through in deciding whether Claude Max is worth it.

How do I know it is a usage limit and not a freeze?

The bottom of the session tells you: Usage limit reached with the reset time, and a second line saying when Claude will continue. On recent versions, signed in with a subscription, Claude Code waits in the open session and picks the task back up after the reset. On an API key there is no reset to wait for, because that usage is metered per request.

Not sure what your terminal is actually doing?

A lot of the "it's broken" moments I see in lessons turn out to be a question nobody answered or an agent nobody noticed, and the fix takes a minute once someone points at the right line. Book a free 15-minute Discovery Call, bring the session that confused you, and we will work out what it was really doing.

Written by Michael Murr for AI Tutor Code: private 1-on-1 online tutoring for professionals learning Python, AI tools, Data Science, ML, and LLM engineering. 200+ students taught, 3,000+ hours delivered.

Related articles

Keep reading on related topics.

Enjoyed this article?

You can master this and more with a dedicated 1-on-1 tutor.

Book a Free Discovery Call