diff --git a/packages/client/ui-workflow-run/src/client/WorkflowRunPanel.tsx b/packages/client/ui-workflow-run/src/client/WorkflowRunPanel.tsx
index 59883e5ae6..f9d3adf294 100644
--- a/packages/client/ui-workflow-run/src/client/WorkflowRunPanel.tsx
+++ b/packages/client/ui-workflow-run/src/client/WorkflowRunPanel.tsx
@@ -85,7 +85,7 @@ function ManualDisclosure(props: StatusDisclosureProps) {
}
function StatusDisclosure({ cleanCycleKey, requiresExpansion, ...props }: StatusDisclosureProps & {
- readonly cleanCycleKey: number
+ readonly cleanCycleKey?: number | undefined
readonly requiresExpansion: boolean
}) {
if (!requiresExpansion) return
@@ -139,7 +139,6 @@ function RunHeader({ children, count, name, requiresExpansion, status, t }: {
}
title={t('run.title', { name })}
- cleanCycleKey={count}
requiresExpansion={requiresExpansion}
expandOnRowClick
previewChevron={false}
diff --git a/packages/client/ui-workflow-run/tests/workflow-run.spec.tsx b/packages/client/ui-workflow-run/tests/workflow-run.spec.tsx
index 55ee32b8d1..e4fefa5ad7 100644
--- a/packages/client/ui-workflow-run/tests/workflow-run.spec.tsx
+++ b/packages/client/ui-workflow-run/tests/workflow-run.spec.tsx
@@ -377,7 +377,7 @@ describe('WorkflowRunPanel', () => {
expect(screen.queryByText('未分阶段')).toBeNull()
})
- it('refolds when a complete activity cycle arrives as one clean update', () => {
+ it('refolds a phase when a complete activity cycle arrives as one clean update', () => {
const firstMember = {
seq: 1, label: 'first', childId: 'child-1' as SessionId, status: 'completed' as const,
}
@@ -397,23 +397,6 @@ describe('WorkflowRunPanel', () => {
expect(screen.getByRole('button', { name: /未分阶段/ }).getAttribute('aria-expanded')).toBe('false')
expect(screen.queryByText('first')).toBeNull()
expect(screen.queryByText('second')).toBeNull()
- phaseView.unmount()
-
- const workflowClean: WorkflowRunChatData = {
- name: 'workflow-cycle', status: 'completed',
- phases: [phase({ members: [firstMember] })],
- }
- const workflowView = render()
- fireEvent.click(screen.getByRole('button', { name: /^workflow-cycle/ }))
- expect(screen.getByText('未分阶段')).toBeTruthy()
- workflowView.rerender()
- expect(screen.getByRole('button', { name: /^workflow-cycle/ }).getAttribute('aria-expanded')).toBe('false')
- expect(screen.queryByText('未分阶段')).toBeNull()
})
it('derives the zero-member running and completed states from the current run status', () => {