From ade1072e4a9bb1e2a188e38ec57659142a310e13 Mon Sep 17 00:00:00 2001 From: Zamil Majdy Date: Wed, 11 Feb 2026 06:41:41 +0400 Subject: [PATCH] fix(backend/executor): Nullify credentials when deleted instead of using field default When a configured credential is deleted, set input_data to None (consistent with the "no credentials" path at line 279) instead of the field's raw default value ({}), which would fail CredentialsMetaInput validation. --- autogpt_platform/backend/backend/executor/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/executor/manager.py b/autogpt_platform/backend/backend/executor/manager.py index f348de0d02..27bbdb6f81 100644 --- a/autogpt_platform/backend/backend/executor/manager.py +++ b/autogpt_platform/backend/backend/executor/manager.py @@ -295,7 +295,7 @@ async def execute_node( f"Credentials #{credentials_meta.id} not found, " "running without (field has default)" ) - input_data[field_name] = input_model.model_fields[field_name].default + input_data[field_name] = None continue raise creds_locks.append(lock)