docs: Claude Code v2.1.235 - Redirection permission checks, FileChanged hooks expanded, SDK 0.123.0 - #1192
Merged
Conversation
…ed hooks expanded, SDK 0.123.0 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: This release tightens permission enforcement around shell redirections (a previously unchecked write path), significantly expands FileChanged hook docs with a working example and dynamic watchPaths guidance, and ships Python SDK 0.123.0 / TypeScript SDK 0.118.0 with API additions to files, memory stores, user profiles, and skill — plus a removal of the unsupported
mid_conv_systemcontent block that could affect anyone using it.HIGHLIGHTS:
permissions.md) —>,>>,2>targets are now checked against Edit allow/deny rules and protected paths.Bash(git commit *)no longer implicitly permits its output target./dev/nullis exempt;~-prefixed or glob targets always require approval. This is a behavior change that could prompt existing users who redirect in previously-approved Bash commands.strictKnownMarketplaceshostPatternmatching forgit-type sources changed in v2.1.234 — SSH addresses without a scheme (git@host:path) now correctly extract the host; before v2.1.234 some non-SSH forms also matched, which was wrong.hooks.md) — now documented as using a filesystem watcher (not tool call inspection), so it fires for Bash rewrites and external processes too. New complete example: normalize line endings indata.csvafter any write, with a guard to avoid infinite re-trigger loops. New guidance: usewatchPathsreturn from hooks to build the watch list dynamically; seed it fromSessionStart/CwdChangedwhen you can't name files upfront.hooks.md) — new note: omit matcher or use"*"to catch every successful tool call; usegit status --porcelaininside the hook to see untracked filesgit diffmisses. Explicit cross-reference: PostToolUse matchingEdit|Writedoes NOT fire when Bash or an external process rewrites the file — use FileChanged for that.mid_conv_systemcontent block removed (was never supported). Python fix: platform headers no longer spawn a subprocess. Session-runner fix: retry tool-result sends for at least the lease TTL.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning