Bug: Multimodal message serialization error causes images to not display

Open 💬 1 comment Opened Jul 27, 2026 by baixingzhu6-tech
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Bug: Multimodal message serialization error causes images to not display

Summary

When images are included in a conversation, the app fails to render them and repeatedly triggers API serialization errors: messages[1]: content should be a string or a list.

Environment

  • App: ChatGPT Desktop (Codex) v26.721.41059
  • OS: macOS 26.5.2 (Build 25F84)
  • Node: v24.14.0

Error Logs

Instance 1 (thread title generation):
2026-07-27T03:54:13.783Z [ThreadMetadataGenerationService] Failed to generate thread title
errorMessage="Structured turn failed: Failed to deserialize the JSON body into the target type: messages[1]: content should be a string or a list at line 1 column 21736"

Instance 2 (user conversation turn):
Failed to deserialize the JSON body into the target type: messages[1]: content should be a string or a list at line 1 column 77051

Stack Trace

src-BPbHdvxe.js:320:1975 → routeIncomingMessage → dispatchParsedMessage → drainLineQueue

Steps to Reproduce

  1. Include an image in a conversation (AI-generated or user-uploaded)
  2. Wait for model response / thread title generation
  3. Image fails to display; API returns invalid_request_error

Root Cause

When messages[1] contains multimodal content (text + image), the content field serialization does not conform to the API's expected format (content must be a string or a valid content part list). The error occurs at different column positions (21736 vs 77051), indicating the same serialization defect triggers across different request bodies.

Impact

  • Images are completely invisible in conversations
  • Thread title auto-generation fails
  • All conversation turns containing images are affected

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #35331

Powered by Codex Action