From 365a2287a1b6c6db8fa12be3c833cf037e16ef83 Mon Sep 17 00:00:00 2001 From: Multica Eve Date: Tue, 21 Jul 2026 17:37:25 +0800 Subject: [PATCH] fix(runtimes): normalize Qwen logo import for desktop (#5728) Co-authored-by: Eve Co-authored-by: multica-agent --- packages/views/runtimes/components/provider-logo.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/views/runtimes/components/provider-logo.tsx b/packages/views/runtimes/components/provider-logo.tsx index 56f0335142..a157e2afd9 100644 --- a/packages/views/runtimes/components/provider-logo.tsx +++ b/packages/views/runtimes/components/provider-logo.tsx @@ -286,7 +286,10 @@ function GrokLogo({ className }: { className: string }) { // Qwen Code — official SVG copied verbatim from QwenLM/qwen-code's desktop // brand assets (packages/desktop/apps/electron/resources/brands/qwen-code/icon.svg). -const qwenLogoSrc = typeof qwenLogo === "string" ? qwenLogo : qwenLogo.src; +const qwenLogoSrc: string = (() => { + const asset = qwenLogo as unknown; + return typeof asset === "string" ? asset : (asset as { src: string }).src; +})(); function QwenLogo({ className }: { className: string }) { return ;