docs: Claude Code v2.1.216 - disable filesystem sandbox layer, hooks continueOnBlock, rewind symlink fix#1079
Merged
Conversation
…continueOnBlock, rewind symlink fix Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.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.
Night shift report
WHY THIS MATTERS: v2.1.216 ships one genuinely new sandboxing knob (
sandbox.filesystem.disabled) that operators will want to evaluate — it lets you sandbox network access without filesystem restrictions, a meaningful posture shift for teams who trust their code but not their network calls. Two behavior changes (hooks deny semantics, rewind symlink handling) are silent breaking changes that could surprise existing setups: hooks that relied on PreToolUse deny feeding the reason back to Claude now end the turn instead, and/rewindnow silently skips symlinked/hard-linked files rather than writing through them.HIGHLIGHTS:
sandbox.filesystem.disabled— set totruein user/managed/CLI settings to turn off filesystem isolation while keeping network isolation; lets subprocesses touch the full host filesystem while their network egress stays locked toallowedDomains. Requires v2.1.216. Project settings (.claude/settings.json) cannot set this — only user or managed settings can, preventing a checked-out repo from widening its own sandbox. Security note: with auto-allow on, a sandboxed command can now write shell startup files or executables, creating escalation risk; docs include a new Warning block.PreToolUsedeny behavior flipped — before v2.1.210, deny returned the reason to Claude as a tool error and the turn continued; now by default the turn ends and the reason appears as a chat warning. NewcontinueOnBlock: trueflag restores the old feed-back-to-Claude behavior.PostToolUsealso gainscontinueOnBlock: truesupport./rewindnow skips symlinked and hard-linked files with a "Restored the code, but skipped N files" warning instead of writing/deleting through links silently. Affects dotfile-manager symlinks and pnpm hard-links. Debug log (/debugbefore restore) names the skipped paths./loginauth; sessions using API keys orclaude setup-tokenlong-lived tokens no longer attempt to connect (previously they tried and failed with 403).CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTHconfigures the inline truncation limit forOTEL_LOG_TOOL_CONTENT=1andOTEL_LOG_RAW_API_BODIES(was hardcoded at 60 KB). Requires v2.1.214+.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning