Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Troubleshoot the Agent SDK changedagent-sdk/troubleshooting

Upstream edited this page at 29 Nov 2026 00:02 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 29 Nov 2026 00:07 UTC.

Upstream edited
Recorded here
Lines+5added
Lines−1removed
From line 161 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits18to this page, all time

The whole hunk

from line 161, old and new numbered
/
lines
from line 161
161161Any change a tool already made stays in place, and the tool call whose message was too long may have made one. To pick up the work that stopped:
162162 
1631631. If you hold a `ClaudeSDKClient` open, call `disconnect()`. The client receives no more messages after this error, but Claude Code keeps running and can still make changes.
1642. Start a new `query()` or `ClaudeSDKClient` with the larger limit and [`continue_conversation=True`](https://code.claude.com/docs/en/agent-sdk/sessions#continue-resume-and-fork), which picks the most recent session in the working directory. To pick a specific session, set `resume` to `data["session_id"]` from the init [`SystemMessage`](https://code.claude.com/docs/en/agent-sdk/python#systemmessage).
1642. Start a new `query()` or `ClaudeSDKClient` with the larger limit, and set `resume` to `data["session_id"]` from the init [`SystemMessage`](https://code.claude.com/docs/en/agent-sdk/python#systemmessage).
165 
166 In an app that serves several users, keep each user's session ID and resume with it, and start a new session for a user whose ID you didn't keep.
167 
168 If your app runs one conversation at a time and you didn't keep the ID, set [`continue_conversation=True`](https://code.claude.com/docs/en/agent-sdk/sessions#continue-resume-and-fork) instead to resume the most recent session in the working directory.
165169 
166170## Streaming input
167171 
Feedback