Agent Builder - JSON Schema editor duplicates required and breaks the editor

Saving a json_schema response format works once. Reopening the Advanced UI shows a massively duplicated required array. This is not on every json_schema but probably Running the workflow throw an error. Any attempt to edit/remove items or switch output type triggers:
can't access property "push", a.required is undefined

This leaves the step stuck: you can’t clean the schema or change the output type.

Expected

  • The editor preserves a unique required array.

  • Removing required items or switching output type doesn’t crash the UI.

Actual

  • On reopen, required contains hundreds of duplicates of the same 3 keys.

  • Deleting/adding items or changing output type throws a.required is undefined.

  • State becomes uneditable.

  • Page crash on selection of output format “Text”

Steps to Reproduce

  1. Create a step with response_format.type = “json_schema” named PhotoQuestQuestion.

  2. Paste this valid schema, Save:

{
“type”: “object”,
“title”: “PhotoQuestQuestion”,
“description”: “A structured multiple-choice question generated from a newspaper photo.”,
“properties”: {
“question”: { “type”: “string”, “description”: “The question related to the newspaper page.”, “default”: “” },
“answers”: {
“type”: “array”,
“description”: “An array of 4 possible answers. One is correct; the other three are incorrect.”,
“items”: { “type”: “string”, “description”: “A possible answer to the question.” },
“minItems”: 4, “maxItems”: 4, “default”:
},
“correct_answer_index”: { “type”: “integer”, “description”: “The index (0-based) of the correct answer in the answers array.”, “minimum”: 0, “maximum”: 3 }
},
“required”: [“question”,“answers”,“correct_answer_index”],
“additionalProperties”: false
}

  1. Reopen the schema editor. The required array is now duplicated many times.

  2. Try removing items or changing output type → error a.required is undefined.

  3. Attempting to remove schema elements also fails with the same error.

Impact

  • Cannot correct the schema.

  • Cannot switch the output type.

  • Workflow step is effectively bricked unless recreated under a new name.

UPDATES:

This is due to a data transformation that happens after the agent workflow

4 Likes

currently facing the same thing- any updates here?

Even if i remake the agent the duplicated field magically reappears- this is completely breaking the agent. i have removed the transformation node but it appears this agent is just fully broken now.

I cant even make a new agent! the entire platform is just broken now

1 Like

i changed the type of output from json to widget, updated and retried. resolved it . also have you removed the reference to the output in the next steps? i had to remove the agent, the link to the next step before making it work.