Skip to content

fix: tolerate null legacy chat settings#70

Merged
LIlGG merged 1 commit into
mainfrom
feat/fix-ai-chat-null-boolean
Jun 16, 2026
Merged

fix: tolerate null legacy chat settings#70
LIlGG merged 1 commit into
mainfrom
feat/fix-ai-chat-null-boolean

Conversation

@LIlGG

@LIlGG LIlGG commented Jun 16, 2026

Copy link
Copy Markdown
Owner

What this PR does / why we need it:

  • 将 AI 聊天和 Agent 设置中可能来自历史数据的 primitive 字段改为可接收 null,并在构造阶段归一到默认值。
  • 修复历史设置里 aiChatBaseSetting.isAnonymous 或 Agent 相关字段为 null 时,Jackson 3 反序列化失败导致聊天接口异常的问题。
  • 补充 AI 聊天和 Agent 设置 null 兼容测试,避免后续回归。

Which issue(s) this PR fixes:

Fixes

Does this PR introduce a user-facing change?

修复历史 AI 聊天或 Agent 设置包含空值时可能导致聊天接口异常的问题。

@LIlGG LIlGG marked this pull request as ready for review June 16, 2026 16:14
@LIlGG LIlGG merged commit 81d4304 into main Jun 16, 2026
1 check passed
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