Files
crewAI/lib
Devin AI 00e963aeb3 fix: propagate contextvars.Context in execute_async() thread
Use contextvars.copy_context() to capture the calling thread's context
and run the worker thread target via ctx.run() so that ContextVar values
(used by OpenTelemetry, Langfuse, and other tracing libraries) are
preserved inside async task execution threads.

Previously, threading.Thread() was used without copying context, causing
all ContextVar values to silently reset to defaults in worker threads.

Fixes #4822

Co-Authored-By: João <joao@crewai.com>
2026-03-12 06:18:25 +00:00
..
2026-03-11 11:30:11 -04:00