Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

143 pages for interrupt.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

self-hosted-sandboxes-operations Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-operations …| Fix the cause on the host, then send a [`user.interrupt`](https://platform.claude.com/docs/en/managed-agents/events-and-streaming#interrupt-the-agent) event. The session's work… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …T_ID") ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer stop() client := anthropic.NewClient(option.WithAuthToken(environmentKey)) worker :=… session-observability Claude Developer Platform · in the page managed-agents/session-observability …-agents/events-and-streaming"> Send events, stream responses, and interrupt or redirect your session while it runs. </Card> <Card title="Session budgets" icon="coins" href="https://platform.c… session-operations Claude Developer Platform · in the page managed-agents/session-operations …gent. To update the agent while the session is running, send a [`user.interrupt` event](https://platform.claude.com/docs/en/managed-agents/events-and-streaming#interrupt-the-agent) by itself and wait… session-threads Claude Developer Platform · in the page managed-agents/session-threads ….claude.com/docs/en/managed-agents/session-threads description: List, interrupt, and archive the threads of a multiagent session, read their events, and handle tool permissions across them. featureMet… sessions Claude Developer Platform · in the page managed-agents/sessions …_result`) aren't accepted because no agent turn exists yet, and `user.interrupt` isn't accepted because there is no turn to stop. Unlike `initial_events` (java, php: `initialEvents`; csharp, go: `Init… tools Claude Developer Platform · in the page managed-agents/tools …-agents/events-and-streaming"> Send events, stream responses, and interrupt or redirect your session while it runs. </Card> </CardGroup> webhooks Claude Developer Platform · in the page managed-agents/webhooks …lures`. The trigger is how long the endpoint has been failing without interruption, not a delivery count. A single `2xx` resets the window, so one event that fails intermittently can't disable the end… workflow-runs Claude Developer Platform · in the page managed-agents/workflow-runs …/events-and-streaming). To stop a run, ask the agent to stop it (see [Interrupt a session with runs open](https://platform.claude.com/docs/en/managed-agents/workflow-runs#interrupt-a-session-with-runs… migration-guide Claude Developer Platform · in the page models/haiku-5-5/migration-guide …ove them to the user message, for example "Your previous response was interrupted and ended with `[previous_response]`. Continue from where you left off." * **Context reminders:** put them in the user… migration-guide Claude Developer Platform · in the page models/sonnet-5-5/migration-guide …ove them to the user message, for example "Your previous response was interrupted and ended with `[previous_response]`. Continue from where you left off." * **Context reminders:** put them in the user… claude-fable-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. When someone describes a past harmful experience with crisis services or mental-health care, Claude acknowledges it… claude-fable-5-1 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5-1 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. Claude does not tell someone that self-harm works, helps, or does something for them, even when they say so themsel… claude-haiku-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-4-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. In ambiguous cases, Claude tries to ensure the person is happy and is approaching things in a healthy way. If Claud… claude-haiku-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-5-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. Claude does not tell someone that self-harm works, helps, or does something for them, even when they say so themsel… claude-opus-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. Claude does not tell someone that self-harm works, helps, or does something for them, even when they say so themsel… claude-sonnet-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. In ambiguous cases, Claude tries to ensure the person is happy and is approaching things in a healthy way. If Claud… claude-sonnet-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5-5 …e sensation or imagery of self-harm reinforce the pattern rather than interrupt it. In ambiguous cases, Claude tries to ensure the person is happy and is approaching things in a healthy way. Claude d… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …` limit before finishing | No | | `error_during_execution` | An error interrupted the loop (for example, a cancelled request) | No | | `error_max_structured_output_retries` | No valid structured outpu… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …don't repeat that message while your app stays unresponsive. If you interrupt the query while a callback is pending, Claude Code cancels the pending tool call. Before v2.1.208, the tool call could s… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …ual control | | **Streaming Input** | ✅ Supported | ✅ Supported | | **Interrupts** | ❌ Not supported | ✅ Supported | | **Hooks** | ✅ Supported | ✅ Supported | | **Custom Tools** | ✅ Supported | ✅ Supp… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …ntry.uuid` in your `append()` implementation. A store outage doesn't interrupt the agent, since the subprocess writes locally first. Monitor for `mirror_error` if you need to detect store data loss.… Work with sessions Claude Code CLI · in the page agent-sdk/sessions …ns it already made. You can ask a follow-up question, recover from an interruption, or branch off to try a different approach. > [!NOTE] > > Sessions persist the **conversation**, not the filesystem.… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …that's cut off If a stream is cut off mid-message, such as when you interrupt the turn or the connection drops, you still receive that message's `message_stop` before the turn ends. A cut text or th… Streaming Input Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …to operate as a long lived process that takes in user input, handles interruptions, surfaces permission requests, and handles session management. ### Benefits In streaming input mode, you work in a… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e={null} interface Query extends AsyncGenerator<SDKMessage, void> { interrupt(): Promise<SDKControlInterruptResponse | undefined>; rewindFiles( userMessageId: string, options?: { dryRun?:… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …docs/en/agent-sdk/streaming-vs-single-mode.md) when you need to: * **Interrupt the agent mid-task**: send a cancel signal or change direction while Claude is working * **Provide additional context**:… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …r the selection. While you're viewing a teammate's transcript, Escape interrupts that teammate's current turn An idle teammate's row stays in the panel while any teammate or subagent is still working… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …ng, the supervisor restarts its process and the session continues the interrupted response from where it left off. ### Row summaries The one-line summary in each row is generated by a [Haiku-class m… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …d). The loop can occur when corporate VPNs or TLS inspection proxies interrupt the SSO browser flow. Claude Code treats the interrupted connection as an authentication failure. When a later request f… Best practices for Claude Code Claude Code CLI · in the page best-practices …al you're clicking through rather than reviewing. Two tools cut those interruptions in Manual mode and apply in auto mode as well: * **Permission allowlists**: permit specific tools you know are safe… Claude Code changelog Claude Code CLI · in the page changelog …ons that move to a new runner: Claude now sees the tool call that was interrupted, marked as outcome unknown * \[VSCode] Improved Edit and Write speed in the chat panel: the wait for new problems afte… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …that thread. * Answer a permission prompt the thread is waiting on. * Interrupt the thread with **Stop**, which replaces the send button while the thread is working, or by pressing Esc. ### Choose mo… Code Review Claude Code CLI · in the page code-review …fort, and a failed run never blocks your PR. Code Review retries some interrupted reviews on its own. This section covers how to run a review again yourself and where to look when the check run report… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …sult). * **Wait for the automatic retry**: a review whose session was interrupted is retried once automatically. The [check run's summary](/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or… Troubleshoot Code Review Claude Code CLI · in the page code-review-troubleshooting …d-out review If the check run's summary says "The review session was interrupted before it could finish. A new review of this commit has been queued automatically.", you don't need to do anything. Th… Commands Claude Code CLI · in the page commands …ent turn finishes. Claude Code runs some commands immediately without interrupting the response, such as `/status`, `/tasks`, and `/usage`. In [fullscreen rendering](/docs/en/fullscreen), Claude Code… Manage costs effectively Claude Code CLI · in the page costs …rned on. * On Claude Code v2.1.234 or later, [wait and continue the interrupted task automatically after the reset](/docs/en/interactive-mode.md#wait-for-a-usage-limit-to-reset); that section lists… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …between tool calls during an active turn, so a running tool is never interrupted. When the receiving session is idle, Claude Code starts a new turn with the message. A message from another session a… Desktop application Claude Code CLI · in the page desktop …mode). You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Claude reads the c… Get started with the desktop app Claude Code CLI · in the page desktop-quickstart …e Desktop](/docs/en/desktop.md). Here are some things to try next. **Interrupt and steer.** You can redirect Claude at any point. Click the stop button to interrupt immediately, or type a correction… Environment variables Claude Code CLI · in the page env-vars …e, so your screen reader can speak the line in full before new output interrupts it. Default `3000`. Set `0` to render immediately. Claude Code caps the hold at `600000` (10 minutes). Your first keyst… Error reference Claude Code CLI · in the page errors …keeps every block Claude completed before the error, but discards an interrupted final block when the turn ends, so the final sentences or tool calls may be missing. Reply with `continue` to have Cla… Fullscreen rendering Claude Code CLI · in the page fullscreen …s: * **`Esc`**: Claude Code performs the key's usual action, such as interrupting the running response or dismissing an open dialog, and the selection stays highlighted. * **`PgUp`, `PgDn`, `Ctrl+Hom… Glossary Claude Code CLI · in the page glossary …Each tool use returns information that informs the next step. You can interrupt the loop at any point to redirect. Most extension points, including [hooks](#hook), [skills](#skill), and [MCP](#mcp-mod… Keep Claude working toward a goal Claude Code CLI · in the page goal …format stream-json --verbose` to emit each message as the loop runs. Interrupt the process with Ctrl+C to stop a non-interactive goal before it resolves. ## How evaluation works `/goal` is a wrappe… Run Claude Code programmatically Claude Code CLI · in the page headless …or it. To end the turn instead, send SIGINT, or call the Agent SDK's `interrupt()`, before you stop the process. On SIGTERM, Claude Code terminates the process tree of any Bash command that is still… Hooks reference Claude Code CLI · in the page hooks …| For `"deny"` only: tells Claude why the permission was denied | | `interrupt` | For `"deny"` only: if `true`, stops Claude | A hook that exits 2 without a `decision` object leaves the permission f… Automate actions with hooks Claude Code CLI · in the page hooks-guide …shes responding, not only at task completion. They don't fire on user interrupts. API errors fire [StopFailure](/docs/en/hooks.md#stopfailure) instead. * When multiple `PreToolUse` hooks return [`upda… How Claude Code works Claude Code CLI · in the page how-claude-code-works …action, verifying results, and repeating until task complete. You can interrupt at any point.](https://mintcdn.com/claude-code/ikqp3_70mqIahteV/images/agentic-loop.svg?fit=max\&auto=format\&n=ikqp3_70…
Feedback