Repository navigation
fix: add json output alias on Retrieval node - #20394
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughRetrieval responses now provide non-nil ChangesRetrieval Output Normalization
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change makes Retrieval nodes expose an empty json array on zero-hit searches, so downstream json templates resolve instead of failing. No merge-blocking risk was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change is narrow and does not add retrieval privileges. However, workflows reading only the JSON array can now continue after a missing-dataset error, creating a limited failure-handling risk. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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. A rabbit checks the empty tray, Comment |
Summary
Fix the Retrieval node's json output when a search returns zero hits.
The tool envelope tags chunks with omitempty, so an empty result dropped the key entirely — the node never wrote json into canvas state, and any downstream {{@JSON}} template failed the whole run with Can't find variable: '@JSON'.