Skip to content

fix(console): preserve assistant content arrays - #41792

Open
yxlphobe-pixel wants to merge 1 commit into
anomalyco:devfrom
yxlphobe-pixel:assistant-content-array
Open

fix(console): preserve assistant content arrays#41792
yxlphobe-pixel wants to merge 1 commit into
anomalyco:devfrom
yxlphobe-pixel:assistant-content-array

Conversation

@yxlphobe-pixel

@yxlphobe-pixel yxlphobe-pixel commented Aug 11, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #41766

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

OpenAI Responses API assistant messages may provide content as an array of output_text parts. fromOpenaiRequest only preserved string content, so array-form messages were forwarded without content and rejected.

This change joins the output_text parts into assistant content while preserving existing tool calls. It also adds regression coverage for multi-part assistant content.

How did you verify your code works?

  • Added a regression test confirming that multiple output_text parts become hello world.
  • Ran bun test test/providerRequest.test.ts from packages/console/app.
  • Ran bun typecheck from packages/console/app.
  • Passed the pre-push repository typecheck across 30 packages.

Screenshots / recordings

Not applicable; this is a non-UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Aug 11, 2026
@yxlphobe-pixel
yxlphobe-pixel marked this pull request as ready for review August 11, 2026 16:22
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Zen /v1/responses drops array-format assistant content -> 400 "Invalid assistant message: content or tool_calls must be set"

1 participant