Skip to content

Hermes 激活时没有任务卡,界面无反应但已打开新终端窗口 #115

Description

@yujiezhang-ops

现象

选择 Hermes 并激活时,界面上不会出现任何任务卡,页面停在激活页不动。同时后端已经打开了一个新终端窗口在跑官方安装脚本。用户看到的是一个没有反应的界面和一个突然冒出来的终端。

原因

frontend/src/pages/ActivationPage.tsx:65-71official-script 类型的 Agent 从 targets 里过滤掉了,所以不会为 hermes 启动任务。

后续连锁:

  • startActivationTasks 返回 {agents: [], runtimes: []}。这个对象是 truthy,所以 activate() 继续执行(:171-176)。
  • startedTasks.agents[0]undefined,所以 :177-178navigate(installTaskRoute(firstAgent)) 不会触发,页面不跳转。
  • 进度行仍然会从 state.selectedAgentIds 渲染出来(:323),但 finishActivationTasks:123-129)遍历的是 started.agents——空数组,所以这一行永远不会被结束。

后端这边 launchOfficialInstallerinternal/app/install.go:421-426)确实执行了,并打开新终端窗口,日志里记的是 Official installer opened in a new terminal.——这条字符串也是英文且不在 i18n 表里。

文档有写,但应用里没有链接

docs/ai-agent-kit/zh/04-agent-guides.md:42 说明了这个行为(「OneAgent 打开新的 Bash 或 PowerShell 窗口运行 Hermes 官方安装脚本」)。但界面从不指向这篇文档——frontend/src 里没有任何一处引用 docs/ai-agent-kit/

期望

  • 官方脚本类 Agent 也要有任务卡,状态明确表示「已在新终端窗口中启动,请在那里完成」。
  • 打开终端窗口这件事必须在激活前或激活时告知用户。
  • 日志文案补 i18n。

参考

  • frontend/src/pages/ActivationPage.tsx:65-71:123-129:171-178:323
  • internal/app/install.go:421-426
  • docs/ai-agent-kit/zh/04-agent-guides.md:42

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions