From 5215bdb54434c937e54b9d160f67d820bfec3eba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 18 Nov 2025 10:22:16 +0000 Subject: [PATCH 1/2] Initial plan From 870b7e1a1c1729077c506d1d468e93d78a23cc26 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 18 Nov 2025 10:30:50 +0000 Subject: [PATCH 2/2] Fix URL parsing to handle trailing punctuation correctly Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com> --- python/packages/devui/agent_framework_devui/_deployment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/packages/devui/agent_framework_devui/_deployment.py b/python/packages/devui/agent_framework_devui/_deployment.py index 1693600108..eaf40e4c45 100644 --- a/python/packages/devui/agent_framework_devui/_deployment.py +++ b/python/packages/devui/agent_framework_devui/_deployment.py @@ -470,9 +470,11 @@ async def _deploy_to_azure( ) elif "https://" in line_text: # Try to extract all URLs and check if any is on azurecontainerapps.io - urls = re.findall(r'https://[^\s]+', line_text) + urls = re.findall(r'https://[^\s<>"]+', line_text) for url in urls: - host = urlparse(url).hostname + # Strip common trailing punctuation to ensure clean URL parsing + url_clean = url.rstrip('.,;:!?\'")}]') + host = urlparse(url_clean).hostname if host and (host == "azurecontainerapps.io" or host.endswith(".azurecontainerapps.io")): await event_queue.put( DeploymentEvent(type="deploy.progress", message="Deployment URL generated!")