docs: Claude Code v2.1.251 - new hook events, 5 security fixes, new claude-tag-wif-gateway-sample repo - #1224
Merged
Conversation
…laude-tag-wif-gateway-sample repo 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.251 patches five security vulnerabilities — file tools could escape the approved directory by following a swapped symlink, plugin commands could path-traverse outside their directory, project settings could sneak in raw API body logging, the Workflow tool could read arbitrary paths before the permission check ran, and Grep/Glob didn't honour
Read(...)deny rules through symlinked search paths. Beyond the security fixes, two new hook events (PreModelSwitch/PostModelSwitch) give hooks the ability to block or annotate model switches for the first time, and the discovery run surfaced a new Anthropic public repo (claude-tag-wif-gateway-sample) that we don't yet archive.HIGHLIGHTS:
scriptPathcould traverse outside the plugin dir; project settings could enable raw API body logging; WorkflowscriptPathread outside session permissions before check ran; Grep/Glob ignoredRead(...)deny rules on symlinked pathsPreModelSwitchandPostModelSwitchevents let hooks block, confirm, or annotate model switches;SessionStartresume hooks now receive session staleness and estimated re-cache costdiscovery.jsonentry:anthropics/claude-tag-wif-gateway-sampleappeared undergithub_org_anthropics.not_fetched— a new public Anthropic repo, likely a WIF (Workload Identity Federation) gateway sample for Claude Tag. Adding it to the archive is a human decision./usage; per-session prompt-cache stats (hit ratio, misses, tokens re-cached) in/costand theprompt_cachestatus line objectattach,logs,stop,respawn,rmnow appear inclaude --help; the "session already running" message names the exactclaude attach <id>commandCreated by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning