fix: hide canvas auto-agent process copy
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-05-19 11:10:22 +08:00
parent 82876977aa
commit 7f309aad22

View File

@ -9135,7 +9135,7 @@ export function CanvasChatPanel({
: isVideoWorkspace
? "描述镜头、主体和运动方式,也可以先切到首帧或首尾帧模式"
: activeComposerMode === "agent" && !isPresetAgentSelection
? "直接告诉我你的需求,也可以上传图片让我分析、修图或继续生成"
? ""
: hasAgentUploadSlots
? "可选补充本次生图要求,例如:高级感、暖灰色、近景特写、生成3张。"
: "可选补充本次生成要求,例如:更高级、更生活化、暖调灯光。"
@ -9146,7 +9146,7 @@ export function CanvasChatPanel({
? `描述镜头、主体和运动方式;可从画布填充${videoFrameSlots.join(" / ")}`
: "描述视频镜头、主体、运动方式与时长,也可以切换到首帧或首尾帧模式"
: activeComposerMode === "agent" && !isPresetAgentSelection
? "可直接对话,也可上传图片让我分析、修图、生图或继续处理上一版"
? ""
: activeComposerMode === "agent" && selectedAgentPreset?.type === "text"
? "可上传图片做分析,也可直接输入文案需求"
: hasAgentUploadSlots
@ -9285,8 +9285,8 @@ export function CanvasChatPanel({
const workspaceEmptyDescription =
activeComposerMode === "agent" && !isPresetAgentSelection
? hasSelectedAgentPreset
? "当前是 Auto Agent,可直接上传图片或输入需求;如果要跑当前预设,切到“预设Agent”即可。"
: "可直接上传图片或输入需求,支持分析图片、连续修图、生图和视频协助。"
? ""
: ""
: hasAgentUploadSlots && attachments.length < agentRequiredUploadCount
? "从左侧 SKU / SPU 获取图片,或在下方继续上传替换后,再点击开始生成。"
: "可在下方补充要求后点击开始生成,结果会显示在这里。";
@ -9298,13 +9298,7 @@ export function CanvasChatPanel({
const isAgentTargetClarificationActive =
shouldShowAgentTargetLockCard && activeAgentTargetLock?.stage === "clarify";
const shouldShowAgentProgressCard =
!isDetailGenerationMode &&
activeComposerMode === "agent" &&
!isPresetAgentSelection &&
Boolean(activeAgentProgress) &&
!(activeAgentProgress?.stage === "clarify" && isAgentTargetClarificationActive) &&
(activeAgentProgress?.stage === "clarify" ||
activeAgentProgress?.stage === "failed");
false;
const agentTargetLockPreviewItems = useMemo(() => {
if (!activeAgentTargetLock) return [] as AgentTargetLockRefPreview[];
const targets = Array.isArray(activeAgentTargetLock.targets) ? activeAgentTargetLock.targets : [];
@ -9711,9 +9705,11 @@ export function CanvasChatPanel({
<div className="text-2xl font-semibold tracking-tight text-foreground">
{workspaceEmptyTitle}
</div>
<div className="mt-3 text-sm leading-6 text-muted-foreground">
{workspaceEmptyDescription}
</div>
{workspaceEmptyDescription ? (
<div className="mt-3 text-sm leading-6 text-muted-foreground">
{workspaceEmptyDescription}
</div>
) : null}
{attachments.length > 0 ? (
<div className="mt-6 flex flex-wrap justify-center gap-2">
{attachments.map((attachment, index) => (