From 6b3eb8064b0b79195094c04e719a5bc2c57ed4e7 Mon Sep 17 00:00:00 2001 From: fujie Date: Sat, 28 Feb 2026 14:17:05 +0800 Subject: [PATCH] fix(pipes): align artifacts internal array type tracking with stream loops --- plugins/pipes/github-copilot-sdk/github_copilot_sdk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py index 61b1c89..cd448e4 100644 --- a/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py +++ b/plugins/pipes/github-copilot-sdk/github_copilot_sdk.py @@ -1251,7 +1251,7 @@ class Pipe: { "filename": safe_filename, "content": artifacts_content, - "type": "message", + "type": "artifacts", } ) except Exception as e: @@ -5668,10 +5668,10 @@ class Pipe: except Exception: pass - # 2. Emit UI components (richui or message type) + # 2. Emit UI components (richui or artifacts type) if pending_embeds: for embed in pending_embeds: - if embed.get("type") in ["richui", "message"]: + if embed.get("type") in ["richui", "artifacts"]: # Status update await __event_emitter__( { @@ -5709,7 +5709,7 @@ class Pipe: }, } ) - elif embed.get("type") == "message": + elif embed.get("type") == "artifacts": # Artifacts mode appends as raw message await __event_emitter__( {