Skip to content

Cover the direct Anthropic SDK contract - #891

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan/anthropic-integration-fix
Nov 21, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan/anthropic-integration-fix

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The direct Anthropic adapter's unit tests mock the SDK, and the Claude compatibility workflow goes through Copilot. Neither caught that Anthropic SDK 1.8.0 now creates server-side message threads by default.

The adapter now opts out of server-side threading so Rig continues to own and send the full conversation history. A contract test runs the installed SDK against an in-memory HTTP transport and checks structured-output serialization, tool execution and results, and history across turns. It runs in ordinary npm test without credentials or network access. The Copilot workflow is unchanged.

Validation: npm test (739 passed), npm run typecheck, and npm run lint.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 21, 2026 23:43
@pelikhan
pelikhan merged commit 1abc701 into main Nov 21, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

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.

1 participant