From 4d114d2e29c3d5388168dcd96bed8a1c0f62b173 Mon Sep 17 00:00:00 2001 From: aran-yogesh Date: Tue, 24 Feb 2026 12:36:09 -0800 Subject: [PATCH] fix: preserve image url order when deduping --- apps/agent/agent/utils/multimodal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/agent/agent/utils/multimodal.py b/apps/agent/agent/utils/multimodal.py index a7e83cd5..bc2b7ff6 100644 --- a/apps/agent/agent/utils/multimodal.py +++ b/apps/agent/agent/utils/multimodal.py @@ -80,5 +80,4 @@ async def fetch_image_block( def dedupe_urls(urls: list[str]) -> list[str]: - deduped: set[str] = set(urls) - return list(deduped) + return list(dict.fromkeys(urls))