Repository navigation
Fix: Remove the empty response field from the retrieval operator. - #18963
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe retrieval configuration no longer supports ChangesRetrieval empty response removal
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: 🔵 Low · up to The retrieval form no longer exposes or validates empty_response, while existing saved configurations can still cause the API to return that legacy response when retrieval is empty. This creates bounded configuration-history-dependent behavior that should have an explicit compatibility or migration policy, but the change remains mergeable with owner awareness. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description includes the required Summary heading and states the purpose of the pull request. It does not provide background context, but the description is sufficiently complete for this small change.
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.
This is an AI review comment.
The change is small and clean, but I want to flag that the backend still fully supports empty_response for the retrieval operator, so removing it only from the frontend has functional consequences:
-
Feature becomes unreachable but still live.
internal/agent/component/universe_a_wrappers.gostill parsesparams["empty_response"]intoretrievalParams.EmptyResponseand applies it as a node-level default;internal/agent/tool/retrieval.gousesargs.EmptyResponseas the fallback output when retrieval returns nothing (around lines 163/172/249/291-292);internal/agent/tool/registry.gostill validates it as a string param. So this removes the UI, not the behavior. -
Silent data loss on re-save. Because
RetrievalPartialSchemaandinitialRetrievalValuesno longer includeempty_response, an existing canvas whose Retrieval node already hasempty_responseset will silently drop that value the next time the node is edited/saved (zod strips unknown keys). Users won't get any warning that their configured fallback text is gone.
Please confirm this is an intentional deprecation. If so, I'd suggest:
- a stated deprecation plan (ideally removing/neutralizing the backend handling in a follow-up, or keeping it only for backward compat on existing DSLs), and/or
- a migration or note so existing canvases don't silently lose the value.
If it's not intentional, the field should stay in the form until the backend behavior is removed too.
This is an AI review comment.
Summary
Fix: Remove the empty response field from the retrieval operator.