Skip to content

Commit d98474e

Browse files
clone agent per run
1 parent 720db06 commit d98474e

File tree

1 file changed

+1
-1
lines changed
  • sentry_sdk/integrations/openai_agents/patches

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/openai_agents/patches/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def wrapper(*args, **kwargs):
2626
# Isolate each workflow so that when agents are run in asyncio tasks they
2727
# don't touch each other's scopes
2828
with sentry_sdk.isolation_scope():
29-
agent = args[0]
29+
agent = args[0].clone()
3030
with agent_workflow_span(agent):
3131
result = None
3232
try:

0 commit comments

Comments
 (0)