bug(workflow-utils): createHermesRole passes prompt as Hermes profile name #216
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
When a workflow uses
createHermesRole, the prompt string is passed as a positional argument to the Hermes CLI, which interprets it as a profile name instead of a prompt.Reproduce
Trigger any workflow with a tester role using
createHermesRole. The tester fails with:Expected
The prompt should be passed via
--promptflag or stdin, not as a positional argument.Found in
Running
sense-generatorworkflow — planner and coder succeeded, tester failed at Hermes invocation.Fix
Update
createHermesRoleinpackages/workflow-utils/src/role-factories.tsto pass the prompt correctly to Hermes CLI.补充诊断
Issue 描述的问题是对的,但修复位置不准确。问题不在
role-factories.ts,而在packages/workflow-utils/src/hermes-agent.ts。要改的点(第 36-49 行)
"run"→"chat"— hermes 没有 run 子命令"-p"→"-q"— 单次查询用 -q/--query"--skill"→"-s"— 正确的 flag 是 -s/--skills— 小墨