From 1705baf976c2e99a478c91b9a5ac764fae10e129 Mon Sep 17 00:00:00 2001 From: fujie Date: Sat, 28 Feb 2026 13:01:38 +0800 Subject: [PATCH] feat(pipes): unrestrict richui iframe height and apply generous sandbox policies --- plugins/pipes/github-copilot-sdk/github_copilot_sdk.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py index d579fd2..de71ce1 100644 --- a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py +++ b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py @@ -1246,11 +1246,13 @@ class Pipe: if is_html and embed_type == "richui" and rich_ui_supported: try: # For Rich UI Integrated view, we pass a clean iframe. - # We use 60vh directly to avoid nested iframe height collapses. + # We use 100vh directly to allow it to expand fully like artifacts. embed_content = ( f'' + f'sandbox="allow-scripts allow-same-origin allow-popups allow-downloads allow-forms" ' + f'allow="fullscreen" ' + f'style="width:100%; height:100vh; min-height:600px; border:none; border-radius:12px; ' + f'box-shadow: 0 10px 40px rgba(0,0,0,0.1);">' ) if pending_embeds is not None: