diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx index b75c68dd0..2097c5622 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx @@ -1,12 +1,11 @@ +import { Check, RotateCcw, X } from 'lucide-react'; import { useState } from 'react'; -import { closeDialogOnEscape } from '../../app/dialogs'; import type { DesignClarificationRequest, DesignView, DesignWorkspaceEntry, } from '../../app/types'; -import { ChatMarkdownMessage } from '../../components/ChatMarkdownMessage'; const PHASE_LABELS: Record = { concept: '概念设计', @@ -37,72 +36,71 @@ type DesignAgentSurfaceProps = { export function DesignAgentSurface({ view, - files, - previewPath, - previewText, busy, error, onApprove, onClarify, onRetry, - onOpenFile, - onClosePreview, }: DesignAgentSurfaceProps) { const [clarifyText, setClarifyText] = useState(''); const phase = view?.session.currentPhase ?? 'concept'; const pending = view?.session.pendingApproval; const clarification = view?.session.pendingClarification; return ( -
-
-
+
+
+
+ 当前阶段 {PHASE_LABELS[phase] ?? phase} - {view?.running ? 进行中 : null}
+ {view?.running ? ( + 工作中 + ) : null}
- {error ? ( -

{error}

- ) : null} + {error ?

{error}

: null} {pending ? (
- - +

当前阶段产物已提交,是否批准进入下一阶段?

+
+ + +
) : null} {clarification ? (

{clarification.question}

- {clarification.options.map((option, index) => ( - - ))} +
+ {clarification.options.map((option, index) => ( + + ))} +