From d9daf3e6db2fd33c088f8c89dbf7cc29647e8b35 Mon Sep 17 00:00:00 2001 From: Nick Tindle Date: Wed, 11 Feb 2026 12:14:58 -0600 Subject: [PATCH] fix: Remove redundant Dockerfile check TEXT_EXTENSIONS already contains 'Dockerfile' --- autogpt_platform/backend/backend/util/sandbox_files.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autogpt_platform/backend/backend/util/sandbox_files.py b/autogpt_platform/backend/backend/util/sandbox_files.py index cf6ffe744a..d5782a23eb 100644 --- a/autogpt_platform/backend/backend/util/sandbox_files.py +++ b/autogpt_platform/backend/backend/util/sandbox_files.py @@ -148,9 +148,7 @@ async def extract_sandbox_files( continue # Check if it's a text file - is_text = any( - file_path.endswith(ext) for ext in TEXT_EXTENSIONS - ) or file_path.endswith("Dockerfile") + is_text = any(file_path.endswith(ext) for ext in TEXT_EXTENSIONS) # Skip non-text files if text_only mode if text_only and not is_text: