Issue: Configuration leakage across threads and async tasks in agentscope
Issue: Configuration leakage across threads and async tasks in agentscope: a task in LegoFlow-SWE (Harbor dataset). When agentscope is used in concurrent Python code (multiple threads or asyncio tasks), calls to agentscope.init() share a single global configuration. This creates race conditions…
The task
When agentscope is used in concurrent Python code (multiple threads or `asyncio` tasks), calls to `agentscope.init()` share a single global configuration. This creates race conditions because the last initialization overwrites previously set values for **all** execution contexts.
Part of Lego-X/LegoFlow-SWE.