Conversation
Operations that change non-concurrent collections must have exclusive access
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
reviewed |
User description
Operations that change non-concurrent collections must have exclusive access
PR Type
Bug fix
Description
Fix concurrent access issue in agent template rendering
Replace direct dictionary modification with local copy
Prevent race conditions in multi-threaded scenarios
Diagram Walkthrough
File Walkthrough
AgentService.Rendering.cs
Fix concurrent dictionary access in renderingsrc/Infrastructure/BotSharp.Core/Agents/Services/AgentService.Rendering.cs
agent.TemplateDictasrenderDict