Skip to content

fix(test): handle thinking model assistant messages in SDK E2E tests#2259

Closed
wenshao wants to merge 1 commit intoQwenLM:mainfrom
wenshao:fix/e2e-thinking-model-compat
Closed

fix(test): handle thinking model assistant messages in SDK E2E tests#2259
wenshao wants to merge 1 commit intoQwenLM:mainfrom
wenshao:fix/e2e-thinking-model-compat

Conversation

@wenshao
Copy link
Copy Markdown
Collaborator

@wenshao wenshao commented Mar 10, 2026

Thinking models (e.g. glm-5) emit assistant messages with only thinking blocks before sending text content. The tests incorrectly assumed every assistant message contains text blocks, causing failures. Skip thinking-only messages when checking for text content.

TLDR

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Thinking models (e.g. glm-5) emit assistant messages with only thinking
blocks before sending text content. The tests incorrectly assumed every
assistant message contains text blocks, causing failures. Skip
thinking-only messages when checking for text content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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