diff --git a/src/features/projects/ProjectLayout.vue b/src/features/projects/ProjectLayout.vue
index bd754bf..12943b4 100644
--- a/src/features/projects/ProjectLayout.vue
+++ b/src/features/projects/ProjectLayout.vue
@@ -6,6 +6,8 @@ import { EmptyState } from '../../components/ui'
import { projectContextKey, useProjectData } from './context'
import { getOperation } from '../workflows/operations'
import { isProjectComplete, projectAccessKey, type ProjectAccess } from './access'
+import { useWorkflowExecution } from '../workflows/execution'
+import WorkflowExecutionPanel from '../workflows/WorkflowExecutionPanel.vue'
/** 项目标题只保留名称;下游工作区在剧本完成前不挂载,直接链接也无法越过限制。 */
const route = useRoute()
@@ -19,6 +21,13 @@ const isGallery = computed(() => {
const context = useProjectData(id)
provide(projectContextKey, context)
const operation = computed(() => getOperation(id.value))
+const createDramaExecution = useWorkflowExecution(id, 'create-drama')
+watchEffect(() => {
+ const status = createDramaExecution.query.data.value?.status
+ if ((status === 'completed' || status === 'failed') && context.project.value?.status === 'generating') {
+ void context.refresh()
+ }
+})
const complete = computed(() => isProjectComplete(context.project.value, id.value))
const isCreation = computed(() => route.path.replace(/\/+$/, '').endsWith('/create-drama'))
type OperationGuide = {
@@ -134,6 +143,16 @@ onScopeDispose(() => {