Skip to content

fix: recover anthropic thinking retries from errorBody - #98323

Closed
arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix-98308
Closed

arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix-98308

Conversation

@arkyu2077

Copy link
Copy Markdown
Contributor

Summary

Extends Anthropic thinking-block recovery detection so genericized provider errors still retry when the original invalid-signature detail only survives in ProviderHttpError.errorBody or similar nested response payloads.

Changes

  • inspect additional error carriers such as errorBody, body, detail, responseBody, and data
  • JSON-serialize structured provider payloads when needed to recover nested invalid-thinking-signature messages safely
  • add regression coverage for ProviderHttpError.errorBody and structured response-body payloads

Testing

  • pnpm vitest run src/agents/embedded-agent-runner/thinking.test.ts

Fixes #98308

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S r: too-many-prs Auto-close: author has more than twenty active PRs. labels Jul 1, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 1, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Jul 1, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

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

Labels

agents Agent runtime and tooling r: too-many-prs Auto-close: author has more than twenty active PRs. size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic thinking-block recovery does not fire for opus-4.x because ProviderHttpError.errorBody is not inspected

1 participant