Files
CyberStrikeAI/internal/multiagent
flydream 49a90d03fa fix(multiagent): guard MCPExecutionBinder map with RWMutex
Concurrent tool callbacks in eino_adk_run_loop and the MCP monitor
goroutine call Bind/ExecutionID on the same binder. The previous
implementation used a plain map[string]string, causing intermittent
'concurrent map read and map write' panics — the same race that
TestMCPExecutionBinder_ConcurrentBind was added to guard against.

Wrap the map with sync.RWMutex (write lock in Bind, read lock in
ExecutionID). The TrimSpace of toolCallID/executionID stays outside
the critical section to keep it minimal.

go vet ./internal/multiagent/...   ✓
go test -race ./internal/multiagent/... -run MCPExecutionBinder  ✓
2026-07-06 14:37:56 +08:00
..
2026-06-25 15:15:01 +08:00
2026-06-26 10:57:59 +08:00
2026-06-18 12:42:56 +08:00
2026-06-29 16:46:26 +08:00
2026-06-24 17:19:29 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-22 23:27:30 +08:00
2026-07-02 11:55:23 +08:00
2026-06-28 01:15:10 +08:00
2026-06-24 18:14:04 +08:00
2026-07-01 14:34:50 +08:00
2026-06-30 16:00:00 +08:00
2026-06-26 18:16:30 +08:00
2026-07-01 14:34:50 +08:00
2026-06-28 00:56:22 +08:00
2026-06-24 18:14:04 +08:00
2026-06-28 01:15:10 +08:00
2026-06-28 01:15:10 +08:00
2026-06-30 19:53:44 +08:00
2026-06-30 19:53:44 +08:00
2026-06-22 23:27:30 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00
2026-07-02 11:55:23 +08:00
2026-06-24 18:14:04 +08:00
2026-06-25 14:50:28 +08:00
2026-06-25 14:50:28 +08:00
2026-06-18 12:42:56 +08:00
2026-06-18 12:42:56 +08:00