Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(desktop): add cron tool to Tools page UI
Jiang Bohanea7a2c837b78
diff --git a/apps/desktop/electron/ipc/agent.ts b/apps/desktop/electron/ipc/agent.tsindex 385e93912f..89f076a926 100644--- a/apps/desktop/electron/ipc/agent.ts+++ b/apps/desktop/electron/ipc/agent.ts@@ -14,6 +14,7 @@ const TOOL_GROUPS: Record<string, string[]> = {'group:web': ['web_search', 'web_fetch'],'group:memory': ['memory_search'],'group:subagent': ['sessions_spawn'],+ 'group:cron': ['cron'],}// All known tool names (for display when agent not available)@@ -23,6 +24,7 @@ const ALL_KNOWN_TOOLS = [...TOOL_GROUPS['group:web'],...TOOL_GROUPS['group:memory'],...TOOL_GROUPS['group:subagent'],+ ...TOOL_GROUPS['group:cron'],]/**diff --git a/apps/desktop/src/components/tool-list.tsx b/apps/desktop/src/components/tool-list.tsxindex 2ecc05d528..62e11cb075 100644--- a/apps/desktop/src/components/tool-list.tsx+++ b/apps/desktop/src/components/tool-list.tsx@@ -11,6 +11,8 @@ import {ArrowDown01Icon,ArrowUp01Icon,Loading03Icon,+ Time04Icon,+ UserMultipleIcon,} from '@hugeicons/core-free-icons'import type { ToolInfo, ToolGroup } from '../hooks/use-tools'@@ -20,6 +22,8 @@ const GROUP_ICONS: Record<string, typeof FolderOpenIcon> = {runtime: CodeIcon,web: GlobalIcon,memory: AiBrainIcon,+ subagent: UserMultipleIcon,+ cron: Time04Icon,other: CodeIcon,}diff --git a/apps/desktop/src/hooks/use-tools.ts b/apps/desktop/src/hooks/use-tools.tsindex 174af5c463..4f8130ca45 100644--- a/apps/desktop/src/hooks/use-tools.ts+++ b/apps/desktop/src/hooks/use-tools.ts@@ -31,6 +31,8 @@ const TOOL_DESCRIPTIONS: Record<string, string> = {memory_set: 'Store a memory value',memory_delete: 'Delete a memory value',memory_list: 'List all memory keys',+ memory_search: 'Search memory files for keywords',+ cron: 'Create and manage scheduled tasks',}// Group display names@@ -39,6 +41,8 @@ const GROUP_NAMES: Record<string, string> = {runtime: 'Runtime',web: 'Web',memory: 'Memory',+ subagent: 'Subagent',+ cron: 'Cron',other: 'Other',}diff --git a/src/agent/tools/groups.ts b/src/agent/tools/groups.tsindex 821cee91c0..b2430cb479 100644--- a/src/agent/tools/groups.ts+++ b/src/agent/tools/groups.ts@@ -36,6 +36,9 @@ export const TOOL_GROUPS: Record<string, string[]> = {// Subagent tools"group:subagent": ["sessions_spawn"],+ // Cron/scheduling tools+ "group:cron": ["cron"],+// All core tools"group:core": ["read",