Skip to content

Handle NaN values when persisting message JSON - #301

Merged
SaravanakumarR2018 merged 1 commit into
mainfrom
codex/fix-postgresql-json-input-error
Jan 4, 2026
Merged

Handle NaN values when persisting message JSON#301
SaravanakumarR2018 merged 1 commit into
mainfrom
codex/fix-postgresql-json-input-error

Conversation

@SaravanakumarR2018

Copy link
Copy Markdown
Owner

Summary

  • sanitize message properties and content blocks during validation/serialization to replace non-finite numeric values with null before writing JSON to the database
  • reuse the same sanitization for model-dumped and string inputs to prevent invalid JSON values from reaching PostgreSQL

Testing

  • Not run (not requested)

Codex Task

@autofix-troubleshooter

Copy link
Copy Markdown

Hi! I'm the autofix logoautofix.ci troubleshooter bot.

It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃

@SaravanakumarR2018
SaravanakumarR2018 merged commit 87cdb6b into main Jan 4, 2026
22 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants