fix: General agent is now plain chat, no plan/code flow
This commit is contained in:
@@ -642,7 +642,7 @@ export default function AIAssist({ vibeMode = false }: { vibeMode?: boolean } =
|
|||||||
|
|
||||||
// Plan-first workflow only applies to the "code" agent (software architect)
|
// Plan-first workflow only applies to the "code" agent (software architect)
|
||||||
// SEO, content, smm, design, web, app agents go straight to preview
|
// SEO, content, smm, design, web, app agents go straight to preview
|
||||||
const isCodeAgent = currentAgent === "code" || currentAgent === "general";
|
const isCodeAgent = currentAgent === "code";
|
||||||
const wasIdle = !isApproval && isCodeAgent && (assistStep === "idle" || assistStep === "plan");
|
const wasIdle = !isApproval && isCodeAgent && (assistStep === "idle" || assistStep === "plan");
|
||||||
// Detect if user is modifying an existing visual artifact (not text-only agents like SEO/content)
|
// Detect if user is modifying an existing visual artifact (not text-only agents like SEO/content)
|
||||||
const isVisualAgent = currentAgent === "code" || currentAgent === "web" || currentAgent === "app" || currentAgent === "design" || currentAgent === "general";
|
const isVisualAgent = currentAgent === "code" || currentAgent === "web" || currentAgent === "app" || currentAgent === "design" || currentAgent === "general";
|
||||||
@@ -1261,7 +1261,7 @@ export default function AIAssist({ vibeMode = false }: { vibeMode?: boolean } =
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Agentic Plan Review Card */}
|
{/* Agentic Plan Review Card */}
|
||||||
{msg.role === "assistant" && aiPlan && i === aiAssistHistory.length - 1 && assistStep === "plan" && (currentAgent === "code" || currentAgent === "general") && (
|
{msg.role === "assistant" && aiPlan && i === aiAssistHistory.length - 1 && assistStep === "plan" && (currentAgent === "code") && (
|
||||||
<div className="mt-6 p-6 rounded-2xl bg-blue-500/5 border border-blue-500/20 backdrop-blur-sm animate-in zoom-in-95 duration-300">
|
<div className="mt-6 p-6 rounded-2xl bg-blue-500/5 border border-blue-500/20 backdrop-blur-sm animate-in zoom-in-95 duration-300">
|
||||||
<h3 className="text-sm font-black text-blue-400 uppercase tracking-widest mb-4 flex items-center gap-2">
|
<h3 className="text-sm font-black text-blue-400 uppercase tracking-widest mb-4 flex items-center gap-2">
|
||||||
<LayoutPanelLeft className="h-4 w-4" /> {t.proposedPlan}
|
<LayoutPanelLeft className="h-4 w-4" /> {t.proposedPlan}
|
||||||
|
|||||||
Reference in New Issue
Block a user