picoclaw/pkg
yuchou87 cfc29a1383 fix(mcp): prevent use-after-close race between CallTool and Close
A race could occur when Close() called conn.Session.Close() concurrently
with an in-flight conn.Session.CallTool(), leading to undefined behavior.

Fix by adding a sync.WaitGroup to Manager:
- CallTool increments the WaitGroup while holding the read lock (after
  checking m.closed), ensuring no new calls are counted after Close sets
  the flag
- Close sets m.closed=true, releases the write lock, then waits for all
  in-flight calls to finish via wg.Wait() before closing sessions
2026-02-21 14:10:48 +08:00
..
agent perf(agent): cache ListAgentIDs() result before MCP tool registration loop 2026-02-21 13:48:41 +08:00
auth feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
bus Prevent panic on publish after MessageBus is closed (#223) 2026-02-16 15:04:25 +08:00
channels feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
config Merge branch 'main' into mcp-tools-support 2026-02-21 13:28:15 +08:00
constants refactor: replace bool map with set-style map for internal channels (#472) 2026-02-19 11:48:17 +01:00
cron feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
devices feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
health Add health check endpoints (/health and /ready) for container orchestration liveness and readiness probes. (#104) 2026-02-16 11:53:11 +08:00
heartbeat feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
logger feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
mcp fix(mcp): prevent use-after-close race between CallTool and Close 2026-02-21 14:10:48 +08:00
migrate feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
providers feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
routing feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
session feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
skills feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
state feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
tools fix(mcp): guard against nil result from CallTool 2026-02-21 13:40:55 +08:00
utils feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
voice feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00