Repository navigation
Conversation
….1.63) Claude Code 2.1.63 renamed the Task tool to Agent (docs: code.claude.com/docs/en/sub-agents.md). Session JSONL now records "Agent" tool_use blocks, which the parser ignored — subagent spawns lost task descriptions and ProcessLinker could not link them. Accept both names; the input schema (description, prompt, subagent_type) is unchanged. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughChangesSubagent tool recognition
Suggested labels: Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #237
Summary
Claude Code 2.1.63 renamed the subagent-spawning tool from
TasktoAgent(docs: "In version 2.1.63, the Task tool was renamed to Agent"). The settings alias keeps oldTask(...)references working, but session JSONL records the new name — soextractToolCallsmarked zero subagent spawns in modern sessions, silently dropping task descriptions and breakingProcessLinkerlinking.The fix accepts both names. The input schema (
description,prompt,subagent_type) is unchanged per docs, so the existing extraction right below the changed line works as-is. Thesubagents/agent-{id}.jsonltranscript layout is already handled bySubagentLocator.Validation checklist
pnpm typecheckpnpm lint(0 errors)pnpm test(724 passed, +2 new: Agent-named blocks extract isTask/taskDescription/taskSubagentType; legacy Task unchanged; regular tools stay non-task)Agentblocks, 0Task— after the fix all spawn links resolve🤖 Generated with Claude Code
Summary by CodeRabbit
Agenttool name and the legacyTaskname as subagent calls.Bash, as non-task calls.