feat: hardcode tasklist GUIDs in task tool description - #148
Conversation
Bot creates tasks that must belong to one of 4 predefined tasklists (Bot/MCPTools/UrhoX/Maker). Since list_tasklists API returns empty for bot tokens, embed the GUIDs directly in the tool description so Claude always assigns tasks to the correct list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 45s —— View job PR Review: Hardcode tasklist GUIDs in task tool description
✅ Approved — Clean, focused change that solves a real problem (bot token can't list user-created tasklists). The diff is minimal and correct: 4 hardcoded GUIDs added to the tool description, One observation (not blocking): The Overall: small, well-scoped change with passing tests. LGTM. |
Agent SDK re-sends the new systemPrompt on resume, so old sessions naturally get updated tool descriptions without needing a fresh start. - Keep hash computation for diagnostic logging - Remove resumeSkipped field from ClaudeResult - Remove _historyDedup clearing on hash mismatch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 1m 2s —— View job PR Review: feat/task-tasklist-config
✅ Approved — Two well-scoped commits, both clean. Commit 1 ( Commit 2 ( Also included: No issues found with confidence ≥ 75. LGTM. |
* feat: hardcode tasklist GUIDs in task tool description Bot creates tasks that must belong to one of 4 predefined tasklists (Bot/MCPTools/UrhoX/Maker). Since list_tasklists API returns empty for bot tokens, embed the GUIDs directly in the tool description so Claude always assigns tasks to the correct list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: remove system prompt hash session invalidation Agent SDK re-sends the new systemPrompt on resume, so old sessions naturally get updated tool descriptions without needing a fresh start. - Keep hash computation for diagnostic logging - Remove resumeSkipped field from ClaudeResult - Remove _historyDedup clearing on hash mismatch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
list_tasklistsAPI 对 bot token 返回空列表的问题Background
list_tasklistsAPI 使用 bot token 调用时无法返回用户创建的清单。将 GUID 直接写入工具描述,让 Claude 无需 API 查询即可将任务归入正确清单。Test plan
npx vitest run src/feishu/tools/__tests__/task.test.ts— 61 tests passed🤖 Generated with Claude Code