█

AI/TLDR

Anthropic · 22 अक्टू॰ 2026 · प्रमुख

Claude Code 2.1.309 — sandbox और permission से जुड़े कुछ ज़रूरी fixes

संक्षेप में

Claude Code 2.1.309 sandbox और permission की कई कमियाँ बंद करता है, जैसे shell के startup files का sandbox के बाहर चलना। यह 2.1.307 के बाद आया है, जिसमें /claude-api api-version और safety_event OpenTelemetry event जोड़े गए थे।

Anthropic · 22 अक्टू॰ 2026 · 1 जाँचा गया स्रोत

Claude Code repository card on GitHub

Claude Code 2.1.309 एक security-focused release है, जो Bash sandbox और permission checks को और सख़्त करता है।

मुख्य तथ्य

संस्करणv2.1.309 (2.1.307 के बाद)
निर्माताAnthropic
रिलीज़ तारीख22 अक्टू॰ 2026
Sandbox सुधारShell के startup files अब sandbox के बाहर नहीं चलते
ultrareviewअब workspace trust चाहिए (scripts में --trust-workspace)
2.1.307 में नया/claude-api api-version, claude_code.safety_event

यह क्या है?

Claude Code 2.1.309 की मुख्य बात sandbox और permission के fixes हैं। macOS और Linux पर sandbox वाले Bash commands अब हर command से पहले shell के startup files को sandbox के बाहर नहीं चलाते, और sandbox वाले commands या auto-accept किए गए edits अब --mcp-config से पास की गई MCP config file को नहीं बदल सकते। इस release में कुछ और कमियाँ भी बंद हुई हैं: एक Edit(path) deny rule कुछ Bash redirects को पकड़ने से चूक जाता था, और वे compound commands जो git चलाने से पहले directory बदलते थे, prompt छोड़ देते थे।

यह कैसे काम करता है?

कुछ defaults भी बदले गए हैं। `claude ultrareview` अब terminal पर workspace trust माँगता है, और उसके बिना चलने से मना कर देता है, जब तक कोई script --trust-workspace पास न करे। Desktop app और VS Code में bypass permissions mode के दौरान खतरनाक rm या rmdir तुरंत deny हो जाता है, साथ में एक rewrite hint मिलता है, ताकि unattended sessions चलते रहें। और `sed -i` को अब simulated edit preview की जगह standard Bash prompt मिलता है।

यह क्यों मायने रखता है?

जो teams agent commands को रोकने के लिए sandbox पर निर्भर हैं, उनकी असली कमियाँ बंद हुई हैं, जिनमें symlinked paths भी शामिल हैं जो macOS denyWrite globs से बच निकलते थे। पिछले release 2.1.307 में /claude-api api-version जोड़ा गया था, ताकि code को Claude API version 2026-10-21 पर ले जाया जा सके, और claude_code.safety_event OpenTelemetry event जोड़ा गया था, जो हर उस tool call को log करता है जिसे कोई rule, hook, safety check या sandbox रोक दे।

यह किसके लिए है?

Claude Code के उपयोगकर्ता, और वे teams जो sandbox वाले या unattended agents चलाती हैं

अक्सर पूछे जाने वाले प्रश्न

क्या sandbox इस्तेमाल करने पर मुझे Claude Code 2.1.309 पर अपडेट करना चाहिए?
Claude Code 2.1.309 कई sandbox कमियाँ ठीक करता है, इसलिए sandbox इस्तेमाल करने वालों के पास अपडेट करने की अच्छी वजह है। macOS और Linux पर sandbox वाले Bash commands हर command से पहले shell के startup files को sandbox के बाहर चलाते थे, और sandbox वाले commands --mcp-config file को बदल सकते थे। Linux पर, जब कोई background command session के बाद भी चलता रहता था, तब sandbox के write denies भी हट सकते थे।
claude ultrareview अब मुझसे workspace पर भरोसा (trust) क्यों माँगता है?
Claude Code 2.1.309 ने claude ultrareview को workspace trust माँगने वाला बना दिया है। Terminal पर यह पूछता है; वरना यह चलने से मना कर देता है। Scripts --trust-workspace पास कर सकती हैं, जिसे कोई value नहीं चाहिए, इसलिए PR number या base branch उससे पहले जाता है। CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1 सेट करने से यह check बंद हो जाता है।
Claude Code से अपना code Claude API version 2026-10-21 पर कैसे ले जाएँ?
Claude Code 2.1.307 में /claude-api api-version command जोड़ी गई थी, जो Claude API वाले code को API version 2026-10-21 पर ले जाती है। उसी release में claude_code.safety_event OpenTelemetry event भी जोड़ा गया, जो हर उस tool call के लिए है जिसे कोई permission rule, auto mode, safety check, hook या sandbox रोका, पूछा या वापस भेजा गया।
क्या Claude Code में /rewind से अभी भी sed -i के edits वापस किए जा सकते हैं?
नहीं। Claude Code 2.1.309 के बाद sed -i को standard Bash permission prompt मिलता है और वह जैसा लिखा है वैसा ही चलता है, file-edit का simulated preview नहीं दिखता। बाकी Bash से किए गए edits की तरह, इसके बदलाव भी अब /rewind से वापस नहीं होते।

आज़माएँ

npm i -g @anthropic-ai/claude-code@2.1.309

स्रोत

टैग

  • claude-code
  • anthropic
  • coding-agent
  • cli
  • sandbox
  • permissions
  • security
  • opentelemetry
  • claude-api
  • developer-tools
  • release
// कोई रिलीज़ न चूकेंहर AI रिलीज़ पाएँ, आते हीमुफ़्त Telegram चैनल · 1 पंक्ति के TLDR · ईमेल नहींTelegram पर जुड़ें

← सभी रिलीज़ · AI सीखें