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 for error message shown when acquirelock fails

ali-inkco469bf83a4448
diff --git a/packages/app/src/builder-ui/Agent.class.ts b/packages/app/src/builder-ui/Agent.class.ts
index 23b73014..33401c98 100644
--- a/packages/app/src/builder-ui/Agent.class.ts
+++ b/packages/app/src/builder-ui/Agent.class.ts
@@ -150,7 +150,10 @@ export class Agent extends EventEmitter {
// })
// .catch(() => {});
// } else {
- await this.accquireLock(id);
+ const lockResult = await this.accquireLock(id);
+ if (lockResult && !lockResult.success && lockResult.errorCode === 'LOCKED_AGENT') {
+ return true;
+ }
// }
return true;