From dcfde9c0dcddf6deb1c9d22e40512c0b2391ef28 Mon Sep 17 00:00:00 2001 From: fujie Date: Sat, 28 Feb 2026 13:06:10 +0800 Subject: [PATCH] fix(pipes): revert artifacts iframe to barebone structure to avoid OpenWebUI markdown parsing issues --- plugins/pipes/github-copilot-sdk/github_copilot_sdk.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py index 65745d4..d88fbec 100644 --- a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py +++ b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py @@ -1225,14 +1225,8 @@ class Pipe: if has_preview and view_url: result_dict["view_url"] = view_url if is_html and embed_type == "artifacts": - # Artifacts mode: standard iframe for the AI to output directly (Infinite height) - iframe_html = ( - f'' - ) + # Artifacts mode: standard barebone iframe (OpenWebUI might strip complex styles or sandbox attrs) + iframe_html = f'' result_dict["html_embed"] = iframe_html # Note: We do NOT add to pending_embeds. The AI will output this in the message. elif embed_type == "richui":