fix: show task result before human feedback prompt (#6072)#6335
fix: show task result before human feedback prompt (#6072)#6335C1-BA-B1-F3 wants to merge 1 commit into
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 (1)
📝 WalkthroughWalkthroughThe human input provider now prints the current agent result before the first feedback prompt and before subsequent feedback rounds in both sync and async flows. A helper was added to render the formatted result in a Rich panel. ChangesHuman feedback result display
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Summary: This PR displays task results in the existing human feedback flow before prompting for user feedback. No exploitable security vulnerabilities were identified in the added code.
Risk: Low risk. The change only affects local/interactive result presentation and does not introduce new authentication, authorization, data access, external request, or file/system execution paths.
Fixes #6072
Problem
When
human_input=Trueis set on a task, the feedback prompt says "Provide feedback on the Final Result above" but the result is never actually displayed — it only appears whenverbose=True. This leaves users unable to see what they're supposed to give feedback on.Fix
Added a
_show_result()method toSyncHumanInputProviderthat displays the agent's result in a Rich panel before prompting for feedback. This is called in:handle_feedback/handle_feedback_async— shows the initial result before the first feedback prompt_handle_regular_feedback/_handle_regular_feedback_async— shows updated results after each feedback iteration, before prompting againThe result is now always visible regardless of the
verbosesetting, so users can make informed feedback decisions.Summary by CodeRabbit