Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(agents): remove template entry from agent creation ModeChooser (MUL-4481) (#5343)

Naiyuan Qinge1c65b016257
diff --git a/packages/views/agents/components/agent-creation-studio.tsx b/packages/views/agents/components/agent-creation-studio.tsx
index db6a296908..e978882b5f 100644
--- a/packages/views/agents/components/agent-creation-studio.tsx
+++ b/packages/views/agents/components/agent-creation-studio.tsx
@@ -659,7 +659,6 @@ export function AgentCreationStudio() {
{mode === "choose" && (
<ModeChooser
onBlank={chooseBlank}
- onTemplate={() => setMode("templates")}
onAI={() => setMode("ai")}
/>
)}
@@ -771,11 +770,9 @@ export function AgentCreationStudio() {
function ModeChooser({
onBlank,
- onTemplate,
onAI,
}: {
onBlank: () => void;
- onTemplate: () => void;
onAI: () => void;
}) {
const { t } = useT("agents");
@@ -786,12 +783,6 @@ function ModeChooser({
description: t(($) => $.creation_studio.modes.blank.description),
action: onBlank,
},
- {
- icon: Bot,
- title: t(($) => $.creation_studio.modes.template.title),
- description: t(($) => $.creation_studio.modes.template.description),
- action: onTemplate,
- },
{
icon: MessageSquare,
title: t(($) => $.creation_studio.modes.ai.title),
@@ -814,7 +805,7 @@ function ModeChooser({
{t(($) => $.creation_studio.choose_description)}
</p>
</div>
- <div className="mt-9 grid gap-4 md:grid-cols-3">
+ <div className="mx-auto mt-9 grid max-w-3xl gap-4 md:grid-cols-2">
{modes.map(({ icon: Icon, title, description, action, recommended }) => (
<button
key={title}