Repository navigation
Fix: The begin operator of the agent created from the template does not display a pattern. - #18367
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 (3)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review. 📝 WalkthroughWalkthroughThree workflow templates now enable conversational prologues on their Begin nodes. The deep research template also reformats metadata and preserves its avatar data. ChangesWorkflow template updates
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized template update is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Poem
🚥 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. Comment |
wangq8
left a comment
There was a problem hiding this comment.
Verified the fix. The begin node is rendered by web/src/pages/agent/canvas/node/begin-node.tsx, which reads the mode badge from data.form?.mode. When data.form is absent, mode is undefined and no pattern is displayed — which matches the reported bug.
Adding data.form: { enablePrologue: true, mode: "conversational" } to the begin node fixes it, and is consistent with the other templates (e.g. trip_planner.json, web_search_assistant.json). The payload is valid against BeginFormSchema (mode is required and provided; enablePrologue/prologue are optional).
Two minor nits (non-blocking):
deep_research.jsonlost its trailing newline (\ No newline at end of file) and was reformatted alongside the fix — fine, but it makes the diff larger than necessary.enablePrologue: trueis set without aprologuestring, souseGetBeginNodeProloguewill returnundefined(no prologue message). Harmless, but consider either adding aprologuevalue or droppingenableProloguefor clarity.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18367 +/- ##
==========================================
- Coverage 94.56% 90.65% -3.91%
==========================================
Files 10 10
Lines 717 717
Branches 118 118
==========================================
- Hits 678 650 -28
- Misses 25 39 +14
- Partials 14 28 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Fix: The begin operator of the agent created from the template does not display a pattern.