SDK documentation error: `resume` parameter has wrong name (`resumeSessionId`)
Resolved 💬 3 comments Opened Aug 16, 2025 by stevenpetryk Closed Jan 29, 2026
The Claude Code SDK docs have an error with the latest SDK. They claim the parameter for resuming a conversation is resumeSessionId, but it is actually just resume.
See the "multi-turn legal assistant" docs: https://docs.anthropic.com/en/docs/claude-code/sdk#multi-turn-legal-assistant
Here's a correction with the latest SDK:
for (const step of steps) {
for await (const message of query({
prompt: step,
- options: { resumeSessionId: sessionId, maxTurns: 2 }
+ options: { resume: sessionId, maxTurns: 2 }
})) {
if (message.type === "result") {This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗