diff --git a/frontend-v2/src/features/settings/skills/page.test.tsx b/frontend-v2/src/features/settings/skills/page.test.tsx
index 7383f4065..26ca9c861 100644
--- a/frontend-v2/src/features/settings/skills/page.test.tsx
+++ b/frontend-v2/src/features/settings/skills/page.test.tsx
@@ -350,6 +350,67 @@ it('shows per-project delivery results on the skill row and detail panel', async
expect(blockOf('项目 B')).toHaveTextContent(/下发中/)
})
+it('explains a waiting delivery with how to unblock it', async () => {
+ installMarketplaceBackend({
+ catalog: [writing],
+ selections: [marketplaceSelection(writing)],
+ progress: [
+ {
+ namespace: 'demo',
+ identifier: 'writing-kit',
+ results: [
+ {
+ projectId: 'project-a',
+ name: '项目 A',
+ state: 'waiting',
+ installedVersion: '',
+ failure: '',
+ },
+ ],
+ },
+ ],
+ })
+ const user = userEvent.setup()
+ renderSettingsPage()
+ const row = await screen.findByRole('article', { name: 'writing-guide' })
+ await user.click(within(row).getByRole('button', { name: '查看技能 writing-guide' }))
+ const dialog = await screen.findByRole('dialog')
+ expect(within(dialog).getByText('项目 A')).toBeInTheDocument()
+ expect(
+ within(dialog).getByText(/对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时/),
+ ).toBeInTheDocument()
+ expect(within(dialog).queryByText(/结束这些对话/)).not.toBeInTheDocument()
+})
+
+it('does not show the waiting hint for a delivered project', async () => {
+ installMarketplaceBackend({
+ catalog: [writing],
+ selections: [marketplaceSelection(writing)],
+ progress: [
+ {
+ namespace: 'demo',
+ identifier: 'writing-kit',
+ results: [
+ {
+ projectId: 'project-a',
+ name: '项目 A',
+ state: 'installed',
+ installedVersion: '1.0.0',
+ failure: '',
+ },
+ ],
+ },
+ ],
+ })
+ const user = userEvent.setup()
+ renderSettingsPage()
+ const row = await screen.findByRole('article', { name: 'writing-guide' })
+ await user.click(within(row).getByRole('button', { name: '查看技能 writing-guide' }))
+ const dialog = await screen.findByRole('dialog')
+ expect(within(dialog).getByText('项目 A')).toBeInTheDocument()
+ expect(within(dialog).queryByText(/占用运行时/)).not.toBeInTheDocument()
+})
+
it('marks a failed delivery and shows the failure reason', async () => {
installMarketplaceBackend({
catalog: [writing],
diff --git a/frontend-v2/src/features/settings/skills/page.tsx b/frontend-v2/src/features/settings/skills/page.tsx
index 9cedbc303..59c5cd485 100644
--- a/frontend-v2/src/features/settings/skills/page.tsx
+++ b/frontend-v2/src/features/settings/skills/page.tsx
@@ -683,6 +683,11 @@ function SkillDeploymentStates({ states }: { states?: SkillProgress[] }) {
{item.name}
· {projectStateLabel[item.state] ?? item.state}
{item.installedVersion && · v{item.installedVersion}}
+ {item.state === 'waiting' && (
+
+ 技能只在项目运行时已启动且空闲时下发。项目里的对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时;删除不再需要的对话、等任务和工作流结束后会自动下发。
+
+ )}
{item.failure && (
{item.failure}