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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Fix: 86eur41rr : Builder/API Call Component - Ctrl+C/Ctrl+V Does Not Duplicate When Body Field Focused
samme-abduld88a5a49f399
diff --git a/packages/app/src/builder-ui/components/APICall.class.ts b/packages/app/src/builder-ui/components/APICall.class.tsindex 21ad0abf..9c58dd87 100644--- a/packages/app/src/builder-ui/components/APICall.class.ts+++ b/packages/app/src/builder-ui/components/APICall.class.ts@@ -151,7 +151,7 @@ export class APICall extends Component {click: handleKvFieldEditBtn.bind(this, 'headers', {showVault: true,vaultScope: COMP_NAMES.apiCall,- dialogClasses: 'overflow-x-hidden',+ dialogClasses: 'overflow-x-hidden',}),},},@@ -1181,7 +1181,11 @@ export class APICall extends Component {} else {editBtn.style.display = 'none';bodyElm.removeAttribute('readonly');- bodyElm.focus();+ // Only focus when user actively changes content type, not when sidebar opens+ // eventTriggersActually is false on sidebar open, true on actual user interaction+ if (this.eventTriggersActually) {+ bodyElm.focus();+ }}}@@ -1235,6 +1239,10 @@ export class APICall extends Component {this.data.body = '';}// Don't update this.data.contentType directly - let the form save mechanism handle it++ // Mark that the first change event has been handled+ // Subsequent content type changes will be recognized as actual user interactions+ this.eventTriggersActually = true;}, 150);}