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.

Add attachmentKey handling in createAgent function

Muhammad Hamza Khan65b04465ac5b
diff --git a/packages/app/src/builder-ui/pages/builder/agent-settings.ts b/packages/app/src/builder-ui/pages/builder/agent-settings.ts
index d6ab6a71..106ccabc 100644
--- a/packages/app/src/builder-ui/pages/builder/agent-settings.ts
+++ b/packages/app/src/builder-ui/pages/builder/agent-settings.ts
@@ -232,6 +232,11 @@ function createAgent() {
);
}
+ const attachmentKey = urlParams?.get('attachmentKey');
+ if (attachmentKey) {
+ localStorage.setItem('attachmentKey', attachmentKey);
+ }
+
resolve(workspace.agent.id);
} else {
showOverlay('<span class="text-red-700/70">Could not create agent</span>');