AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Strip secrets, credentials when forking agent (#9874)
Krzysztof Czerwinski0675a41e42ee
diff --git a/autogpt_platform/backend/backend/data/graph.py b/autogpt_platform/backend/backend/data/graph.pyindex ea27b14372..993a49693a 100644--- a/autogpt_platform/backend/backend/data/graph.py+++ b/autogpt_platform/backend/backend/data/graph.py@@ -856,7 +856,7 @@ async def fork_graph(graph_id: str, graph_version: int, user_id: str) -> GraphMoForks a graph by copying it and all its nodes and links to a new graph."""async with transaction() as tx:- graph = await get_graph(graph_id, graph_version, user_id=user_id)+ graph = await get_graph(graph_id, graph_version, user_id, True)if not graph:raise ValueError(f"Graph {graph_id} v{graph_version} not found")