fix: honor empty agent suggestions - #2750
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesWidget empty suggestions
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Summary
suggestionsarray as an opt-out instead of falling back to generic suggestionsProduction evidence
A contained CEF checkout created a tenant whose Setup Assistant stored
suggestions: [], but the floating widget still rendered the four generic defaults. The tenant, free non-renewing membership, pending payment record, customer, and synthetic user were removed after the observation.Verification
wp-scripts test-unit-js src/components/chat-widget/__tests__/widget-empty.test.js --runInBand— 2 tests passedwp-scripts test-unit-js --runInBand— 66 suites, 632 tests passedwp-scripts lint-js src/components/chat-widget/widget-empty.js src/components/chat-widget/__tests__/widget-empty.test.js— cleanwp-scripts build— succeeded (existing webpack asset-size warnings only)git diff --checkSummary by CodeRabbit