Fix new_session.ui: correct Form structure using options.fields instead of subwidgets

This commit is contained in:
yumoqing 2026-04-22 16:34:06 +08:00
parent b30a98f65e
commit eee254da60

View File

@ -22,36 +22,27 @@
"id": "new-session-form",
"options": {
"width": "100%",
"maxWidth": "600px"
},
"subwidgets": [
"maxWidth": "600px",
"fields": [
{
"widgettype": "UiStr",
"id": "session-name",
"options": {
"name": "session-name",
"label": "Session Name",
"placeholder": "Enter session name...",
"width": "100%",
"marginBottom": "16px"
}
},
{
"widgettype": "UiCode",
"id": "model-select",
"options": {
"name": "model-select",
"label": "AI Model",
"placeholder": "Select model...",
"width": "100%",
"marginBottom": "16px",
"items": []
}
},
{
"widgettype": "UiText",
"id": "initial-prompt",
"options": {
"name": "initial-prompt",
"label": "Initial Prompt (Optional)",
"placeholder": "Enter initial context or instructions...",
@ -59,6 +50,8 @@
"height": "100px",
"marginBottom": "24px"
}
]
}
},
{
"widgettype": "HBox",
@ -116,5 +109,3 @@
}
]
}
]
}