Skip to content

fix(frontend-v2): explain a skill stuck waiting for delivery - #434

Merged
EricWvi merged 2 commits into
ora-space:mainfrom
TannyXie:fix/1386-skill-deploy-waiting-hint
Nov 23, 2026
Merged

EricWvi merged 2 commits into
ora-space:mainfrom
TannyXie:fix/1386-skill-deploy-waiting-hint

Conversation

@TannyXie

Copy link
Copy Markdown
Contributor

摘要

市场技能选中后,若项目运行时还没空闲(项目上有未结束的对话),技能会一直停在「等待下发」,且没有任何可触发的路径(除了删对话/重启后端)。详情面板原来只显示光秃的状态,用户看不出为什么卡住、该怎么做。

改动

frontend-v2/src/features/settings/skills/page.tsx 的项目下发状态列表里,waiting 状态的项目给出原因和办法:

技能在项目空闲时自动下发;项目里有未结束的对话时会一直等待,结束这些对话(或删除对话)后会自动下发。

前端没有拿项目会话信息的渠道(SkillProgress 只有 project/state 字段),所以按 v2-server 现有的空闲下发规则写通用提示,不编造具体会话状态。

验证

  • 单测:skills/page.test.tsx 新增 explains a waiting delivery with how to unblock it;src/features/settings 全量 105 个测试通过,typecheck / lint 通过。

v2,不涉及 specs ADR。

Refs ora-space/circus#1386

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).

@zhangxinhao zhangxinhao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM(f76751c)

@TannyXie 我看了这个 PR,理解它是要在市场技能详情中解释项目为何等待下发,并告诉用户如何解除等待。可以合并。建议补全下发条件,并把提示里的操作对应到现有的对话菜单。

  • 🔧 1 处小改已写成建议(P2-1):见行内 suggestion,可以一键采纳,也可以不改或留到以后。
  • 测试:cd frontend-v2 && npm test -- src/features/settings/skills/page.test.tsx 通过;cd frontend-v2 && npm run lint -- src/features/settings/skills/page.tsx src/features/settings/skills/page.test.tsx 通过;没跑全量和 e2e。

以上都是建议,怎么处理由你决定。

自动检视 · 基于 f76751c · 第 1 轮(全量)

{item.installedVersion && <span> · v{item.installedVersion}</span>}
{item.state === 'waiting' && (
<p className="mt-1 text-muted-foreground">
技能在项目空闲时自动下发;项目里有未结束的对话时会一直等待,结束这些对话(或删除对话)后会自动下发。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2-1(建议) waiting 也会出现在运行时尚未启动的项目上,OnlineSkillProjects 只返回已初始化且没有会话占用的运行时。已有对话的用户也可能把「结束对话」理解为点「停止」,但保留会话时这个按钮只会停止当前轮,技能仍会等待。建议写清下发条件,并把「删除」限定为用户已不再需要该对话时的选项。

Suggested change
技能在项目空闲时自动下发;项目里有未结束的对话时会一直等待,结束这些对话(或删除对话)后会自动下发。
技能会在项目运行时已启动且所有会话结束后自动尝试下发。项目里有未结束的对话时会一直等待,停止本轮后会话仍可能保留。如果不再需要某个对话,可以在对话列表的更多操作中选择「删除」,同时结束其会话。

可直接采纳,也可以不改。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已处理,谢谢。

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

@zhangxinhao zhangxinhao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM(2f3b0b3)

@TannyXie 我看了这个 PR,理解它是要在市场技能详情中解释项目为何等待下发,并告诉用户如何让下发继续。这是第 2 轮,我看了 f76751c 之后的改动。可以合并。上一轮意见已处理,建议补上运行时尚未启动时的操作,并同步 PR 描述。

  • 🔧 1 处小改已写成建议(P2-2):见行内 suggestion,可以一键采纳,也可以不改或留到以后。
  • 💬 其他建议:nit-1 让 PR 描述与当前文案一致
  • ✅ 上轮的 P2-1 已处理,谢谢。
  • 测试:cd frontend-v2 && npm test -- src/features/settings/skills/page.test.tsx 通过;cd frontend-v2 && npm run lint -- src/features/settings/skills/page.tsx src/features/settings/skills/page.test.tsx 通过;没跑全量和 e2e。
没法放到行内的意见

nit-1(可选) PR 描述还引用首轮的「结束这些对话」,当前界面已改为说明运行时的启动和空闲条件,以及对话、任务和工作流的影响。建议更新描述里的引用和摘要,方便后续按合并后的行为核对。

以上都是建议,怎么处理由你决定。

自动检视 · 基于 2f3b0b3 · 第 2 轮(增量)

{item.installedVersion && <span> · v{item.installedVersion}</span>}
{item.state === 'waiting' && (
<p className="mt-1 text-muted-foreground">
技能只在项目运行时已启动且空闲时下发。项目里的对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时;删除不再需要的对话、等任务和工作流结束后会自动下发。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2-2(建议) 从未启动运行时的项目也会显示「等待下发」。这时没有对话可删,也没有任务或工作流可等,而 OnlineSkillProjects 会一直跳过该项目。建议明确告诉用户,可以在该项目先运行一个会执行 Agent 节点且不依赖此技能的工作流,等它结束后由系统自动尝试下发。

Suggested change
技能只在项目运行时已启动且空闲时下发。项目里的对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时;删除不再需要的对话、等任务和工作流结束后会自动下发。
技能会在项目运行时已启动且空闲时自动尝试下发。如果运行时尚未启动,可以先在该项目运行一个会执行 Agent 节点且不依赖此技能的工作流,等它结束。仍保留会话的对话(即使已经回答完)以及正在运行的任务或工作流都会占用运行时。可以删除不再需要且仍占用运行时的对话,并等待任务和工作流结束。

可直接采纳,也可以不改。

@EricWvi
EricWvi merged commit bec67e2 into ora-space:main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants