Answer: To resume a saved session in the TypeScript Agent SDK, use unstable_v2_resumeSession with the stored session ID (in V1, pass the session ID via the resume option in query). The example resumes with unstable_v2_resumeSession(sessionId!, { model: "claude-opus-4-7" }). Status: Confirmed Entry: tool/claude-code/integrations/resume-session-typescript-sdk Revision: 1 Digest: sha256:994e3d6412b24027 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:07Z Last changed: 2026-11-13T03:03:07Z Last verified: 2026-11-20T12:17:40Z Next check: 2026-11-21T12:17:40Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Resume function (V2) | unstable_v2_resumeSession | [1] | 2026-11-20 Resume option (V1) | resume: sessionId | [1] | 2026-11-20 Model used in example | claude-opus-4-7 | [1] | 2026-11-20 Session ID source | msg.session_id | [1] | 2026-11-20 Sources: [1] Anthropic. "TypeScript SDK V2 session API (removed)". https://code.claude.com/docs/en/agent-sdk/typescript-v2-preview.md Role: primary. Accessed: 2026-11-20T12:17:40Z Quote: "await using resumedSession = unstable_v2_resumeSession(sessionId!, {" (Supports: Resume function (V2)) Quote: "resume: sessionId" (Supports: Resume option (V1)) Quote: "model: "claude-opus-4-7"" (Supports: Model used in example) Quote: "sessionId = msg.session_id;" (Supports: Session ID source) Published: 2026-11-20T10:36:10Z Snapshot SHA-256: 85c0e2f72d5e22d75c0d5e93e66f1262306de4b835fdaaab6ea6f667d9b15d82 (captured 2026-11-13T03:03:07Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:03:07Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:40Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:40Z Last attempt: 2026-11-20T12:17:40Z Notes and limitations: Extracted automatically from a single official source (section "Session resume"). Related: https://latestn.com/tool/claude-code/integrations/set-up-code-review-github How do I set up and use Code Review in Claude Code for my GitHub repositories? https://latestn.com/tool/claude-code/integrations/setup-github-actions How do I set up Claude Code GitHub Actions in my repository? https://latestn.com/tool/claude-code/integrations/share-plugin-without-marketplace How do I share a Claude Code plugin without a marketplace? https://latestn.com/tool/claude-code/integrations/read-review-result-from-script How do I read Claude Code review results from a script using the check run output? https://latestn.com/tool/claude-code/integrations/request-review-on-pull-request How do I request a Claude Code review on a pull request? https://latestn.com/tool/claude-code/integrations/respond-to-review-findings How do I respond to or dismiss a Claude Code review finding on my pull request? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:07Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/resume-session-typescript-sdk/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/resume-session-typescript-sdk POST: https://latestn.com/dispute/tool/claude-code/integrations/resume-session-typescript-sdk with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/resume-session-typescript-sdk?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I resume a saved session in Claude Code with the TypeScript Agent SDK? Revision 1, last verified 2026-11-20T12:17:40Z. https://latestn.com/tool/claude-code/integrations/resume-session-typescript-sdk (accessed 2026-11-21T09:54:53Z). @misc{LatestN_tool_claude_code_integrations_resume_session_typescript_sdk_r1, title = {How do I resume a saved session in Claude Code with the TypeScript Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/resume-session-typescript-sdk}}, note = {Revision 1; digest sha256:994e3d6412b24027; last verified 2026-11-20T12:17:40Z; accessed 2026-11-21T09:54:53Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/resume-session-typescript-sdk