feat(frontend): offer Agent type in the Prompts page create menu#4862
Conversation
The Home create modal offers Chat / Completion / Agent, but the Prompts page's "Create new"
menu (and the breadcrumb create menu) only listed Chat and Completion, so agent workflows
couldn't be created from Prompts. The create handler is already type-agnostic
(handleOpenNewPromptModal → createEphemeralAppFromTemplate({type}) → open the agent create
drawer, with onOpenNewPrompt/onNewPrompt typed `(type: AppType)`); only the menu entries were
missing. Add an Agent item to both menus, wired exactly like Chat/Completion.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Railway Preview Environment
Updated at 2026-06-25T23:20:16.401Z |
Context
Agents can be created from the Home page (the create modal offers Chat / Completion / Agent), but the Prompts page "Create new" menu (and the breadcrumb create menu) only listed Chat and Completion, so agent workflows couldn't be created there.
Changes
Added an Agent item to both create menus, wired exactly like Chat/Completion:
No new logic was needed. The create handler was already type-agnostic:
onOpenNewPrompt: (type: AppType)→handleOpenNewPromptModal→createEphemeralAppFromTemplate({type})→ open the agent create drawer.getAppTypeIconalready had the agent (robot) icon. Only the two menu entries were missing.For the agent service (Mahmoud / agents)
Pure FE menu wiring. No new backend or create-flow code. It reuses the exact
createEphemeralAppFromTemplate({type: "agent"})path the Home modal already uses.Tests / notes
What to QA