MCPcopy Create free account
hub / github.com/WJX20/claude-code / shouldIncludeFileReadMitigation

Function shouldIncludeFileReadMitigation

src/tools/FileReadTool/FileReadTool.ts:735–738  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

733const MITIGATION_EXEMPT_MODELS = new Set(['claude-opus-4-6'])
734
735function shouldIncludeFileReadMitigation(): boolean {
736 const shortName = getCanonicalName(getMainLoopModel())
737 return !MITIGATION_EXEMPT_MODELS.has(shortName)
738}
739
740/**
741 * Side-channel from call() to mapToolResultToToolResultBlockParam: mtime

Callers 1

Calls 3

getCanonicalNameFunction · 0.85
getMainLoopModelFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected