Repository navigation
Replies: 5 comments
|
+1,遇到了相同问题,希望优化一下 |
|
Your reading is right, and it is the goal driver's predicate — not the model — that decides this. Where the nudge comes from
return ctx.fiber.state === FiberState.ACTIVE
&& !state.stopping
&& ctx.agents.get(state.agent.id) === state.agent
&& state.agent.status === 'idle'
&& !state.competingQueuedNothing in it asks whether the agent is idle because it is waiting for work it delegated. The Which delegations leave you exposedNot all of them, and the difference matters:
The continuable row is the one with nothing behind it: What a plugin can seeThe pair you would need is public and parent-scoped. Existing asset, and a defect in it you should know about
Checking it against your report turned up two things, and I would rather state both than point you at it:
I am fixing both in one release — What this argues for upstreamA plugin is the interim mitigation, not the right home. "An agent that is idle because it delegated work is not idle" is a statement about the loop, and every goal deployment needs it — including the ones that never mount a plugin. The natural place is Thanks for the comparison with the other agent — the rule you describe ("if the main agent is waiting on children, the goal waits too") is precisely the missing predicate, spelled out. |
|
Follow-up with a correction worth recording, because it invalidates part of what the first reply The plugin I linked was broken against every shipped harness.
Compounded, this was not inert:
npm install @argszero/cordis-plugin-goal-progress-guard
The sharper lesson is about the tests. The fixture's jobs stand-in compared Nothing in the original analysis of the gap changes: |
|
我一直以为这个是中断了 我插件自动触发的继续处理😑😑😑 |
Uh oh!
There was an error while loading. Please reload this page.
当前版本:0.2.0-rc.2
profile 是 web
如图, goal机制 不会判断当前 是否有subagent在途, 简单粗暴的催促主agent继续 , 实际上当前主agent正在等待它之前派出的subagent, 在subagent没有完成任务时, 主agent不应该继续, 也不应该被不断鞭打
我的goal没有专门配置其他模型, 和当前主模型一致, 这不是模型的问题,
因为我在hermes agent中使用 /goal 时, goal模式 会判断当前是否有
subagent在途, 如果主agent在等待子智能体的结果, 那么goal机制不会无脑催促主agent继续, hermes agent能正确处理这个问题 , 它会在这种情况下一起等待;但是dsh没有这个设计, 在有subagent正在运行时, 只要主agent处于空闲状态, goal必然会给主agent抽鞭子 , 导致主agent 非常无语 , 它明明没有错, 却被打得哇哇叫(以及不断给上下文里面塞垃圾), 有一次主agent实在受不了了, 直接取消了在途的subagent. 直接亲力亲为,避免再被goal恶心 (我当时也惊呆了);
(实际模型是GLM-5.3 max, 图中的
code-model是因为我使用了公司的网关, 该网关把上游模型统一暴露为这个名称)All reactions