During a long agentic task Claude Code is spinning in a loop — the sam — Claude Code Certified Professional Practice — Claude Cert Academy

During a long agentic task Claude Code is spinning in a loop — the same tool keeps being called repeatedly. A teammate suggests pressing Ctrl+C. Which behavior should you expect?

Answer: Ctrl+C sends a soft interrupt that lets the current tool call finish, then pauses for human input

Ctrl+C in Claude Code sends a soft interrupt. The running tool call completes first (to avoid leaving side effects half-done), then Claude pauses the agentic loop and returns control to the user for confirmation. It does not kill child processes unsafely. /exit closes the session but does not interrupt a running loop mid-step. There is no /abort command.

Continue to Claude Cert Academy