fix(subagent): attach subAgentId and subAgentName metadata to delegated task messages (#1407) - #1410
teddiesloco wants to merge 1 commit into
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe handoff error path now adds sub-agent and parent-agent metadata to the user task message. ChangesSub-agent message metadata
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Fallback delegated-task messages now carry the same sub-agent and parent-agent metadata as normal handoffs, allowing complete sub-agent conversations to be grouped consistently. No merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the motivation and proposed code change, and it references issue Full details: Linked Issues checkExplanation The change satisfies issue Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Motivation
Fixes #1407.
When delegating tasks to sub-agents via
delegate_task, the error task message fallback previously lackedmetadata(subAgentId,subAgentName,parentAgentId), leading to asymmetric message structures during task failures.Proposed Changes
subAgentId,subAgentName, andparentAgentIdmetadata to the fallbackerrorTaskMessageindelegate_taskexecution workflow withinpackages/core/src/agent/subagent/index.ts.Summary by cubic
Adds
subAgentId,subAgentName, andparentAgentIdmetadata to fallback messages created whendelegate_taskfails. Previously, these error messages lacked metadata, preventing UI and persistence layers from consistently grouping or filtering delegated sub-agent steps.Written for commit cdba2c9. Summary will update on new commits.
Summary by CodeRabbit