Repository navigation
Fix cannot run raptor - #16694
Fix cannot run raptor#16694
Conversation
📝 WalkthroughWalkthroughTaskHandler.handle() now includes an explicit branch for task_type == "raptor" that invokes _run_raptor(), preventing raptor tasks from falling through to the graphrag/mindmap/etc. checks and standard chunking fallback. The graphrag branch is now an elif following this new case. ChangesTask Dispatch Routing
Estimated code review effort: 1 (Trivial) | ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
wangq8
left a comment
There was a problem hiding this comment.
Review: LGTM ✅
Summary: This fixes a bug where task_type == "raptor" tasks would fall through all routing branches without being handled, effectively doing nothing.
What was missing
The routing block only handled graphrag, mindmap, artifact, and dataflow. RAPTOR tasks had no matching branch.
What the fix does
- Adds
if task_type == "raptor":before the existing branches - Changes the existing
if task_type == "graphrag":toelifto maintain a proper chain
Verification
embedding_modelandvector_sizeare both initialized at line 229 (before the routing block) ✅_run_raptor()signature is(self, embedding_model: LLMBundle, vector_size: int, mark_done: bool = True)— the call passes those two positional args correctly ✅
Risk assessment
- Regression risk: Very low. Only adds a new branch; existing behavior untouched.
- Security/performance: No concerns. Single
awaitcall, no new imports or data flow changes.
Nice catch and minimal fix — lands cleanly.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16694 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Follow on PR #16515