summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-15 16:31:04 +0000
committerClaude <noreply@anthropic.com>2026-10-15 16:31:04 +0000
commit8876c9951efd618ef5a889dd1a6479bdb73b70bd (patch)
tree0807071f9262de3351fd3aa58ddb89ae6a5eec76 /plugins/code-modernization/scripts/baseline_diff.py
parent8f814f49002ff824e8a9ba43cf96112dc7f5948d (diff)
security-guidance: skip the untracked-file listing when the Stop review is off
UserPromptSubmit listed every untracked file in the worktree and stored the result in the session state on each prompt, for a snapshot that only the Stop review reads. With ENABLE_STOP_REVIEW=0 or ENABLE_CODE_SECURITY_REVIEW=0 the Stop hook skips before reading it, so the listing is now skipped too. The stash baseline is still captured for the Write pattern filter. When the review is switched back on, the next prompt takes a fresh snapshot, including after an interrupted turn whose baseline is kept. Refs #6612
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions