picoclaw/pkg
yuchou87 2318232b71 fix(agent): ensure MCP cleanup on all Run() exit paths
- Add defer in Run() to guarantee MCP connection cleanup
- Handles both normal termination and context cancellation
- Prevents resource leaks when Run() exits via ctx.Done()
- MCP Manager.Close() is idempotent, safe to call from both defer and Stop()

This fixes GitHub Copilot feedback that MCP cleanup only happened in
Stop() but Run() could return on ctx.Done() without cleanup, causing
subprocess/session leaks on normal cancellation shutdown.
2026-02-16 19:56:00 +08:00
..
agent fix(agent): ensure MCP cleanup on all Run() exit paths 2026-02-16 19:56:00 +08:00
auth fix: codex agent 400 error (#102) 2026-02-16 11:46:02 +08:00
bus Prevent panic on publish after MessageBus is closed (#223) 2026-02-16 15:04:25 +08:00
channels fix: tighten file perms and enforce Slack ACL checks (#186) 2026-02-16 16:06:39 +08:00
config Merge branch 'main' into mcp-tools-support 2026-02-16 16:37:24 +08:00
constants refactor(tools): extract shared logic for internal channels and tool definitions 2026-02-13 15:05:16 +08:00
cron fix: tighten file perms and enforce Slack ACL checks (#186) 2026-02-16 16:06:39 +08:00
devices feat: add device hotplug event notifications (USB on Linux) 2026-02-14 17:03:04 +08: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 * fix: heartbeat/service_test.go test failed 2026-02-13 22:19:18 +08:00
logger * First commit 2026-02-09 19:20:19 +08:00
mcp fix(mcp): resolve relative envFile paths against workspace directory 2026-02-16 19:38:27 +08:00
migrate Merge branch 'main' of https://github.com/sipeed/picoclaw 2026-02-13 15:36:43 +05:30
providers fix: codex agent 400 error (#102) 2026-02-16 11:46:02 +08:00
session Feat issue 183 (#189) 2026-02-16 16:30:54 +08:00
skills feat(skills): add validation for skill info and test cases (#231) 2026-02-16 02:12:50 +08:00
state refactor(heartbeat): add configurable interval and channel-aware routing 2026-02-13 11:13:32 +08:00
tools fix(tools): preserve MCP tool InputSchema via JSON marshal/unmarshal 2026-02-16 19:50:00 +08:00
utils Remove duplicate file extension in DownloadFile (#230) 2026-02-16 02:20:20 +08:00
voice Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00