Small bug in AI Persona Editor: Optional fields' values persist after saving

Discourse version: 3.5.0.beta8-dev

To reproduce:

  1. Create a new or edit an existing AI persona.
  2. Enter any value in:
    • Max context posts (optional)
    • Temperature (optional)
    • Top P (optional)
  3. Save the persona.
  4. Delete the values so that the input fields are empty.
  5. Click save.

The values are reappearing, but the fields should stay empty as those are optional fields.

Screen recording below:

CleanShot 2025-07-07 at 14.48.48

(GIF uploaded to CleanShot Cloud)