mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 01:31:41 +00:00
fix(tui): address Copilot round-2 on #14045
- delegate_task: use shared tool_error() for the paused-spawn early return so the error envelope matches the rest of the tool. - Disk snapshot label: treat orphaned nodes (parentId missing from the snapshot) as top-level, matching buildSubagentTree / summarizeLabel.
This commit is contained in:
parent
eda400d8a5
commit
7eae504d15
2 changed files with 9 additions and 8 deletions
|
|
@ -1489,13 +1489,9 @@ def delegate_task(
|
|||
# when a runaway tree is detected, without interrupting already-running
|
||||
# children. Cleared via the matching `delegation.pause` RPC.
|
||||
if is_spawn_paused():
|
||||
return json.dumps(
|
||||
{
|
||||
"error": (
|
||||
"Delegation spawning is paused. Clear the pause via the TUI "
|
||||
"(`p` in /agents) or the `delegation.pause` RPC before retrying."
|
||||
)
|
||||
}
|
||||
return tool_error(
|
||||
"Delegation spawning is paused. Clear the pause via the TUI "
|
||||
"(`p` in /agents) or the `delegation.pause` RPC before retrying."
|
||||
)
|
||||
|
||||
# Normalise the top-level role once; per-task overrides re-normalise.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue