mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
submit_requirements now tail-calls a shared _discover_and_offer_resources helper straight into build.resource_recommendation, instead of stopping at build.initial_plan to show a plan card the user must click through with no real decision to make. The resource-discovery body (progress reporting, discover_resources, ResourceSelectCard, empty-options notice, assistant turn) is extracted verbatim into that helper so the straight-through path and the continue_adjusting/retry_after_revert loop-back (which still re-enters at build.initial_plan and still requires find_resources) share one implementation instead of drifting apart. build.initial_plan survives as the loop-back target but now offers no UI action (_ACTIONS_FOR entry removed); its handler still accepts find_resources at the backend for that loop-back. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>