From 29946e14e8b9cab10a10e411f008bae5eb9087d6 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sun, 8 Feb 2026 19:27:38 -0600 Subject: [PATCH 1/3] Update find_block.py --- .../backend/backend/api/features/chat/tools/find_block.py | 1 - 1 file changed, 1 deletion(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py b/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py index 149999d61e..06f80b84b1 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py @@ -23,7 +23,6 @@ _TARGET_RESULTS = 10 _OVERFETCH_PAGE_SIZE = 40 # Block types that only work within graphs and cannot run standalone in CoPilot. -# NOTE: This does NOT affect the Builder UI which uses load_all_blocks() directly. COPILOT_EXCLUDED_BLOCK_TYPES = { BlockType.INPUT, # Graph interface definition - data enters via chat, not graph inputs BlockType.OUTPUT, # Graph interface definition - data exits via chat, not graph outputs From 044d5453e2e2b26aa29a981b8705590bf35eecee Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sun, 8 Feb 2026 19:28:31 -0600 Subject: [PATCH 2/3] Update find_block.py --- .../backend/backend/api/features/chat/tools/find_block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py b/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py index 06f80b84b1..f55cd567e8 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/find_block.py @@ -19,7 +19,7 @@ logger = logging.getLogger(__name__) _TARGET_RESULTS = 10 # Over-fetch to compensate for post-hoc filtering of graph-only blocks. -# ~16-17 blocks are currently excluded; 40 provides ample margin. +# 40 is 2x current removed; speed of query 10 vs 40 is minimial _OVERFETCH_PAGE_SIZE = 40 # Block types that only work within graphs and cannot run standalone in CoPilot. From cc41facc79abd790b2b15a3967e05a164abffd45 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sun, 8 Feb 2026 19:48:44 -0600 Subject: [PATCH 3/3] Discard changes to autogpt_platform/backend/backend/api/features/store/content_handlers.py --- .../backend/api/features/store/content_handlers.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/store/content_handlers.py b/autogpt_platform/backend/backend/api/features/store/content_handlers.py index 3a0bcbbbaf..cbbdcfbebf 100644 --- a/autogpt_platform/backend/backend/api/features/store/content_handlers.py +++ b/autogpt_platform/backend/backend/api/features/store/content_handlers.py @@ -254,13 +254,11 @@ class BlockHandler(ContentHandler): all_blocks = get_blocks() # Filter out disabled blocks - they're not indexed - enabled_block_ids = [] - for block_id, block_cls in all_blocks.items(): - try: - if not block_cls().disabled: - enabled_block_ids.append(block_id) - except Exception as e: - logger.warning(f"Failed to instantiate block {block_id}: {e}") + enabled_block_ids = [ + block_id + for block_id, block_cls in all_blocks.items() + if not block_cls().disabled + ] total_blocks = len(enabled_block_ids) if total_blocks == 0: