Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Fix: 86ev85gfw : Agent Skill Component Settings - Missing Error Message for Instructions Field Character Limit Validation

samme-abdul371f260c7b16
diff --git a/packages/app/src/builder-ui/ui/form/createFormField.ts b/packages/app/src/builder-ui/ui/form/createFormField.ts
index 9b8818dd..fd331788 100644
--- a/packages/app/src/builder-ui/ui/form/createFormField.ts
+++ b/packages/app/src/builder-ui/ui/form/createFormField.ts
@@ -666,7 +666,14 @@ export default function createFormField(entry, displayType = 'block', entryIndex
span.classList.add('invalid_feedback');
// Use textContent instead of innerHTML for validation messages (no HTML needed)
span.textContent = entry.validateMessage;
- div.appendChild(span);
+
+ // For expandable textareas, append the error message inside the wrapper
+ // so it's a sibling to the textarea element (which gets the .invalid class)
+ if (textareaWrapper) {
+ textareaWrapper.appendChild(span);
+ } else {
+ div.appendChild(span);
+ }
}
formElement.dispatchEvent(new Event('created'));