From f76751c497ade5ebdbf1029c224321066ae4be6f Mon Sep 17 00:00:00 2001 From: Tianyi Xie <51277808+TannyXie@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:13:14 +0800 Subject: [PATCH 1/2] fix(frontend-v2): explain a skill stuck waiting for delivery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A selected market skill shows "等待下发" on its project while the project runtime is offline (its conversations keep it busy), and the reconciler only delivers when the runtime is idle, so the state never changes on its own. The detail panel only showed the bare status with no way to tell why it was stuck or what to do. Show an explanation on each project whose delivery is waiting: delivery happens automatically once the project is idle, so a project with live conversations keeps waiting until they end (or are deleted). --- .../features/settings/skills/page.test.tsx | 31 +++++++++++++++++++ .../src/features/settings/skills/page.tsx | 5 +++ 2 files changed, 36 insertions(+) diff --git a/frontend-v2/src/features/settings/skills/page.test.tsx b/frontend-v2/src/features/settings/skills/page.test.tsx index 7383f4065..1de5af8fe 100644 --- a/frontend-v2/src/features/settings/skills/page.test.tsx +++ b/frontend-v2/src/features/settings/skills/page.test.tsx @@ -350,6 +350,37 @@ 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() +}) + 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..6f08fd211 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} From 2f3b0b3b5addc04e2d98e2de676fadeb6b39f31d Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Mon, 23 Nov 2026 10:32:45 +0800 Subject: [PATCH 2/2] fix(frontend-v2): say what really keeps a skill waiting for delivery The hint told users to end their conversations, but v2 has no way to end one short of deleting it, a conversation keeps the project runtime busy even after it has answered, and task runs and workflows hold the runtime too. A project whose runtime never started also waits. Say that delivery needs a started, idle runtime and name what occupies it. Refs ora-space/circus#1386 --- .../features/settings/skills/page.test.tsx | 32 ++++++++++++++++++- .../src/features/settings/skills/page.tsx | 2 +- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/frontend-v2/src/features/settings/skills/page.test.tsx b/frontend-v2/src/features/settings/skills/page.test.tsx index 1de5af8fe..26ca9c861 100644 --- a/frontend-v2/src/features/settings/skills/page.test.tsx +++ b/frontend-v2/src/features/settings/skills/page.test.tsx @@ -377,8 +377,38 @@ it('explains a waiting delivery with how to unblock it', async () => { const dialog = await screen.findByRole('dialog') expect(within(dialog).getByText('项目 A')).toBeInTheDocument() expect( - within(dialog).getByText(/项目里有未结束的对话时会一直等待/), + 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 () => { diff --git a/frontend-v2/src/features/settings/skills/page.tsx b/frontend-v2/src/features/settings/skills/page.tsx index 6f08fd211..59c5cd485 100644 --- a/frontend-v2/src/features/settings/skills/page.tsx +++ b/frontend-v2/src/features/settings/skills/page.tsx @@ -685,7 +685,7 @@ function SkillDeploymentStates({ states }: { states?: SkillProgress[] }) { {item.installedVersion && · v{item.installedVersion}} {item.state === 'waiting' && (

- 技能在项目空闲时自动下发;项目里有未结束的对话时会一直等待,结束这些对话(或删除对话)后会自动下发。 + 技能只在项目运行时已启动且空闲时下发。项目里的对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时;删除不再需要的对话、等任务和工作流结束后会自动下发。

)} {item.failure && (