sdk: prefer iframe over video when inferring goView widgets

This commit is contained in:
clawdbot 2026-01-28 04:55:51 +08:00
parent b30d0ff069
commit 4e479870a9

View File

@ -430,14 +430,14 @@ export function convertGoViewProjectToScreen(input: GoViewProjectLike | GoViewSt
const inferredType: 'text' | 'image' | 'iframe' | 'video' | undefined =
isImage(c) || looksLikeImageOption(option)
? 'image'
: optionSaysVideo
? 'video'
: optionSaysIframe
? 'iframe'
: isVideo(c)
: optionSaysVideo
? 'video'
: isIframe(c)
? 'iframe'
: isVideo(c)
? 'video'
: isTextCommon(c)
? 'text'
: undefined;