From 2821a5e3bd93941cabb0e92bec06e61bd3ec63e9 Mon Sep 17 00:00:00 2001 From: koeria Date: Thu, 3 Dec 2026 11:29:30 +0800 Subject: [PATCH] fix(protocol): handle empty Chat history and nullable fields (#831) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(protocol): accept null-content system/developer chat messages Codex 客户端偶尔会发送 content 为 null 的 system 消息,公共校验按空内容拒绝并报 Parameter messages[N].content has an invalid value。允许 system/developer 消息 内容为空,genai 与 messages 转换跳过空内容,responses 目标已自然忽略。 fixes #824 * fix(protocol): normalize empty Chat history and nullable fields Co-authored-by: Codex --------- Co-authored-by: Zyy Co-authored-by: Codex