Skip to content

CM-65504: Skip synthetic task-notification prompts in Claude Code guardrails scan - #500

Merged
Ilanlido merged 1 commit into
mainfrom
CM-65504-fork-subagent-prompt-scanning
Jul 22, 2026
Merged

CM-65504: Skip synthetic task-notification prompts in Claude Code guardrails scan#500
Ilanlido merged 1 commit into
mainfrom
CM-65504-fork-subagent-prompt-scanning

Conversation

@Ilanlido

Copy link
Copy Markdown
Collaborator

Fork/subagent completions are injected into the parent session as synthetic user turns, which fire UserPromptSubmit and were scanned (and reported to telemetry) as if the user typed them. Skip them before payload parsing, policy load, and client init.

…rdrails scan

Fork/subagent completions are injected into the parent session as synthetic
<task-notification> user turns, which fire UserPromptSubmit and were scanned
(and reported to telemetry) as if the user typed them. Skip them before
payload parsing, policy load, and client init.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@Ilanlido
Ilanlido merged commit 0eeb0f2 into main Jul 22, 2026
28 checks passed
@Ilanlido
Ilanlido deleted the CM-65504-fork-subagent-prompt-scanning branch July 22, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants