picoclaw/pkg
yinwm 474f3dbf90 fix: resolve code review issues in tool-result-refactor
1. Remove duplicate ToolResult definition in heartbeat package
   - Import tools.ToolResult instead of local definition
   - Add nil check for handler before execution

2. Fix SpawnTool to return AsyncResult and implement AsyncTool
   - Add callback field and SetCallback method
   - Return AsyncResult instead of NewToolResult

3. Add context cancellation support to SubagentManager
   - Check ctx.Done() before and during task execution
   - Set task status to "cancelled" on cancellation
   - Call callback with result on completion

4. Fix data race window in CronTool.addJob
   - Use Lock instead of RLock for channel/chatID access
   - Ensure consistent snapshot during job creation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 01:59:50 +08:00
..
agent Merge upstream/main into ralph/tool-result-refactor 2026-02-13 01:00:26 +08:00
auth fix(auth): handle string interval in device-code login 2026-02-12 02:22:59 -05:00
bus * First commit 2026-02-09 19:20:19 +08:00
channels feat: add Telegram proxy support and flexible allow_from matching 2026-02-12 22:38:47 +08:00
config Merge upstream/main into ralph/tool-result-refactor 2026-02-13 01:00:26 +08:00
cron Enhance CronTool to support executing shell commands and update job handling 2026-02-12 20:21:49 +05:30
heartbeat fix: resolve code review issues in tool-result-refactor 2026-02-13 01:59:50 +08:00
logger * First commit 2026-02-09 19:20:19 +08:00
migrate feat(migrate): add picoclaw migrate command for OpenClaw workspace migration 2026-02-11 12:48:16 -06:00
providers feat: merge heartbeat service improvements from feat-heartbeat branch 2026-02-13 01:42:22 +08:00
session fix(cron): add one-time reminders and fix data paths to workspace 2026-02-11 20:31:41 +08:00
skills Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00
state chore: Clean up Ralph agent tracking files 2026-02-12 23:51:52 +08:00
tools fix: resolve code review issues in tool-result-refactor 2026-02-13 01:59:50 +08:00
utils refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
voice Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00