Skip to content

fix(anthropic): normalize embedded system messages - #256

Open
SimianW wants to merge 1 commit into
jwadow:mainfrom
SimianW:fix/embedded-system-messages
Open

fix(anthropic): normalize embedded system messages#256
SimianW wants to merge 1 commit into
jwadow:mainfrom
SimianW:fix/embedded-system-messages

Conversation

@SimianW

@SimianW SimianW commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • normalize Claude Code runtime system entries embedded in messages[]
  • preserve their content and cache-control metadata in the top-level system prompt
  • apply the same normalization to message generation and token-count requests
  • add model and route regression coverage

Testing

  • pytest -q (1699 passed)

Closes #255

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.

BUG: Claude Code 2.1.215 embedded system messages fail validation

1 participant