fix(providers): sanitize Claude Code Artifact tool schema for DeepSeek - #5892
codingbooo wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe OpenAI chat adapter now relaxes schemas for unnamespaced ChangesDeepSeek Artifact schema compatibility
Priority: ⬆️ High Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Claude Code's Artifact tool schema is relaxed only for the official DeepSeek endpoint. Other providers and tools keep their existing behavior. No merge-blocking issue remains. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to DeepSeek can now receive a less restrictive Artifact tool definition. The change is narrowly targeted, but it is not established whether the tool executor checks returned arguments against the original constraints. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. (4 skipped: 4 unsupported.)
✨ 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 |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 64 / 80이 풀리퀘스트의 바탕은 이제는 도구 이름이 라인 - 라인 - 라인 - 라인 - 메인테이너의 판단이 필요한 지점 이슈를 입력 규칙을 느슨하게 만드는 것으로 닫을지 정해 주세요. 너의 추천
이 댓글은 grok-bot이 작성했습니다 |
…600-line budget #5869 and #5892 each added a note to chat-compat.md; together they took it to 605 lines. Both notes keep their text; the DeepSeek note drops its heading and the MiMo note joins shorter lines. Co-authored-by: codingbo <cnsdbo@163.com> Co-authored-by: Vadevious <Vadevious@users.noreply.github.com>
lidge-jun#5892) Squashed carry of lidge-jun#5892. Closes lidge-jun#5658 Co-authored-by: codingbo <cnsdbo@163.com>
Summary
Closes #5658.
When routing Claude Code requests to DeepSeek official Chat endpoints, the built-in
Artifacttool schema caused HTTP 400 rejection due to unsupportedanyOfschema structures and regex patterns.Implemented via Codex (
gpt-6-astra):Artifacttool schema when dispatching to official DeepSeek chat targets without mutating other provider definitions.patternandanyOfconstraints while preserving field types.tests/providers/deepseek-artifact-tool-schema.test.tsand updated structure docs.Verification
bun run typecheckpassed cleanly.bun test tests/providers/deepseek-artifact-tool-schema.test.tspassed.Checklist
devSummary by CodeRabbit
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.