feat: SDK upgrade to 0.2.74 + model selection#14
Merged
Conversation
Upgrade @anthropic-ai/claude-agent-sdk from 0.2.34 to 0.2.74 (memory leak fix, HTTP MCP fix, session persistence fix, Sonnet 4.6 support). Add model selection: CLAUDE_MODEL/CLAUDE_FALLBACK_MODEL env vars for server-level config, per-request `model` param in POST /chat for override. Precedence: per-request > CLAUDE_MODEL > SDK/CLI default. Actual model used is reported in the response `model` field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Omitting `model` lets the CLI track the latest default automatically, avoiding version lock-in. Remove `model` from Postman request templates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@anthropic-ai/claude-agent-sdkfrom 0.2.34 to 0.2.74 (memory leak fix, HTTP MCP transport fix, session persistence fix, Sonnet 4.6 support)CLAUDE_MODEL/CLAUDE_FALLBACK_MODELenv vars + per-requestmodelparam inPOST /chat. Precedence: per-request > env var > CLI default. Response includes actualmodelused.Test plan
npm run build— clean compilenpm test— 53 tests passnpm run format:check— cleanPOST /chatdefault model →claude-sonnet-4-6POST /chatwithmodel: haiku→claude-haiku-4-5-20251001session_id, context preserved)start→chunk→done,modelin payload)🤖 Generated with Claude Code