fix: accept sk-ant-sid02 session keys for claude web#960
fix: accept sk-ant-sid02 session keys for claude web#960careful-cat8480 wants to merge 4 commits intoChatGPTBox-dev:masterfrom
Conversation
Review Summary by QodoAccept sk-ant-sid02 session keys for Claude Web
WalkthroughsDescription• Accept newer sk-ant-sid02 session key format • Update validation to support any sid version • Fix error message to reflect generic format Diagramflowchart LR
A["Session Key Validation"] -->|Old: sk-ant-sid01| B["Rejected"]
A -->|New: sk-ant-sid| C["Accepted"]
C -->|Supports sid01, sid02, etc.| D["Forward Compatible"]
File Changes1. src/services/clients/claude/index.mjs
|
Code Review by Qodo
1.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughConstructor validation in the Claude client was changed: the sessionKey check was replaced with a regex requiring the pattern Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
replacing session-key examples with a consistent version-agnostic form
Anthropic changed their session key format from
sk-ant-sid01-*tosk-ant-sid02-*. The validation inclaude/index.mjswas hardcoded to only acceptsid01, causing an error for anyone with a newer key.Changed the
startsWithcheck fromsk-ant-sid01tosk-ant-sidto accept any version going forward.Summary by CodeRabbit