Skip to content

Anthropic 400 "Invalid signature in redacted_thinking block" after approving several tool calls at once #810

Backlog

Description

@ingemras

Which component is this issue related to?

Umbraco.AI.Anthropic

Which Umbraco AI version are you using? (Please write the exact version, example: 10.1.0)

17.8.2

Bug summary

Anthropic return error about "invalid signature" in some situations.
I used to get this error every now and then (at least when trying to create multiple pages, but maybe in more situations), but then I changed thinking effort from high to low, which seems to make it better.

But now I ran into one scenarion where the bug happends ever time (tried exactly the same prompt 3-4 times and got exactly the same results, see "steps to reproduce").
The trigger seems to be paralell calls to "publish_umbraco_content". I added the following line to agent instructions, and that solved the problem.

When you publish things, only publish one thing at a time (publishing multiple things in paralell leads to a crash).

Specifics

Logs:
AnthropicBadRequestException: invalid_request_error
messages.16.content.0: Invalid signature in redacted_thinking block. The block is
bound to a different conversation. ... Content before this block differs from when it
was created, first at messages.15.content.0.
request_id: req_011ChRXeufjqtTWvEpJpUYKr

Steps to reproduce

  1. In Copilot Workspace, ask the agent to update and publish several pages.
  2. The agent calls publish_umbraco_content 4 times in parallel, and an approval popup appears. Click Approve.
  3. Only one publish goes through. The agent says the other three were "rejected because the browser reloaded" and retries them.
  4. The approval popup appears again. Click Approve.
  5. The UI shows "Error: The request was rejected by the AI service."

Expected result / actual result

Expect: published pages and a ok message by the agent.
Actual: 1 or 2 published pages out of 4, and an error in the agent chat.

Dependencies

• Umbraco.Cms 17.8.1 on .NET 10
• Umbraco.AI 17.8.2
• Umbraco.AI.Agent.Copilot 17.2.2
• Umbraco.AI.Agent.Copilot.Workspace 17.3.3
• Umbraco.AI.Anthropic 17.1.5
• Model: claude-haiku-5-5, low effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent/provider-anthropic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions