From d76d463cb5b22d153aa552dd197fbe49487047ac Mon Sep 17 00:00:00 2001 From: Eric-B-Wu Date: Mon, 17 Nov 2025 09:43:57 -0800 Subject: [PATCH 1/3] quick change --- .../src/designer-client-services/lib/base/operations/agent.ts | 2 +- .../src/designer-client-services/lib/base/search.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/logic-apps-shared/src/designer-client-services/lib/base/operations/agent.ts b/libs/logic-apps-shared/src/designer-client-services/lib/base/operations/agent.ts index 2060414c257..db7f6e6230e 100644 --- a/libs/logic-apps-shared/src/designer-client-services/lib/base/operations/agent.ts +++ b/libs/logic-apps-shared/src/designer-client-services/lib/base/operations/agent.ts @@ -15,7 +15,7 @@ export const agentOperation = { displayName: 'Agent', iconUri, }, - summary: 'Agent', + summary: 'Agent Loop', description: 'Loop in which the AI agent decides at each step which tools to use and how, and which text to generate to respond to the user.', visibility: 'Important', diff --git a/libs/logic-apps-shared/src/designer-client-services/lib/base/search.ts b/libs/logic-apps-shared/src/designer-client-services/lib/base/search.ts index fc2ed729032..ecd37f90720 100644 --- a/libs/logic-apps-shared/src/designer-client-services/lib/base/search.ts +++ b/libs/logic-apps-shared/src/designer-client-services/lib/base/search.ts @@ -455,7 +455,6 @@ export function getClientBuiltInOperations( ClientOperationsData.untilOperation, ClientOperationsData.switchOperation, ClientOperationsData.agentOperation, - ClientOperationsData.handoffOperation, ClientOperationsData.recurrenceOperation, ClientOperationsData.delayOperation, ClientOperationsData.delayUntilOperation, From 4178e5ac31b1c3cee8d66c9eb2b565e26f39cd5e Mon Sep 17 00:00:00 2001 From: Eric-B-Wu Date: Thu, 20 Nov 2025 12:46:16 -0800 Subject: [PATCH 2/3] small fix --- libs/designer-ui/src/lib/copyinputcontrol/AgentUrlViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/designer-ui/src/lib/copyinputcontrol/AgentUrlViewer.tsx b/libs/designer-ui/src/lib/copyinputcontrol/AgentUrlViewer.tsx index d0ce98b3a10..a0a8946328e 100644 --- a/libs/designer-ui/src/lib/copyinputcontrol/AgentUrlViewer.tsx +++ b/libs/designer-ui/src/lib/copyinputcontrol/AgentUrlViewer.tsx @@ -73,7 +73,7 @@ export const AgentUrlViewer: React.FC = ({ url, isOpen, que } const queryString = new URLSearchParams(definedParams).toString(); - return queryString ? `${url}?${queryString}` : url; + return queryString ? `${url}${url.includes('?') ? '&' : '?'}${queryString}` : url; }, [url, queryParams]); const handleOpenInNewTab = () => { From e819140e2a12f189a9042fedb63f5096e59b8102 Mon Sep 17 00:00:00 2001 From: Eric-B-Wu Date: Thu, 20 Nov 2025 12:41:57 -0800 Subject: [PATCH 3/3] Fix obo --- .../Services/WorkflowAndArtifacts.tsx | 4 +-- .../src/lib/ui/FloatingRunButton/chat.tsx | 29 +++++++++++++++++-- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/WorkflowAndArtifacts.tsx b/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/WorkflowAndArtifacts.tsx index 2efcccce444..de1ce6d6d25 100644 --- a/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/WorkflowAndArtifacts.tsx +++ b/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/WorkflowAndArtifacts.tsx @@ -313,7 +313,7 @@ const fetchA2AAuthKey = async (siteResourceId: string, workflowName: string, isD // Helper function to fetch EasyAuth const fetchAuthentication = async (siteResourceId: string) => { try { - const response = await axios.post(`${baseUrl}${siteResourceId}/config/authsettings/list?api-version=${standardApiVersion}`, { + const response = await axios.post(`${baseUrl}${siteResourceId}/config/authsettings/list?api-version=${standardApiVersion}`, null, { headers: { Authorization: `Bearer ${environment.armToken}`, }, @@ -445,7 +445,7 @@ export const fetchAgentUrl = (siteResourceId: string, workflowName: string, host queryParams = { apiKey: a2aKey }; // Add OBO token if available - const oboKey = oboData?.properties?.key; + const oboKey = oboData?.properties?.key || oboData?.key; if (oboKey) { queryParams.oboUserToken = oboKey; } diff --git a/libs/designer-v2/src/lib/ui/FloatingRunButton/chat.tsx b/libs/designer-v2/src/lib/ui/FloatingRunButton/chat.tsx index d04e0531488..73e1d9155a7 100644 --- a/libs/designer-v2/src/lib/ui/FloatingRunButton/chat.tsx +++ b/libs/designer-v2/src/lib/ui/FloatingRunButton/chat.tsx @@ -213,10 +213,26 @@ export const ChatButton = (props: ChatButtonProps) => { if (isLoading || isSaving) { return ; } + const queryParams = new URLSearchParams(); + + if (data?.queryParams?.apiKey) { + queryParams.set('apiKey', data.queryParams.apiKey); + } + + if (data?.queryParams?.oboUserToken) { + queryParams.set('oboUserToken', data.queryParams.oboUserToken); + } + + if (isDarkMode) { + queryParams.set('mode', 'dark'); + } + + const separator = agentChatUrl?.includes('?') ? '&' : '?'; + const src = queryParams.toString() ? `${agentChatUrl}${separator}${queryParams.toString()}` : agentChatUrl; return (