Skip to content

Structured subagent announce output + include run outcome - #835

Merged
steipete merged 3 commits into
openclaw:mainfrom
roshanasingh4:fix/817-structured-announce
Jan 15, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
roshanasingh4:fix/817-structured-announce

Conversation

@roshanasingh4

Copy link
Copy Markdown
Contributor

Fixes #817 (partial): enforce structured announce output + surface run outcome.

Why

  • Subagent announces are currently freeform (generated by an agent step). In practice that makes it hard to scan/debug quickly, and failures can be ambiguous.

What changed

  • Wraps subagent announce messages into a stable template: Status: / Result: / Notes: when the agent reply is not already structured.
  • Captures agent.wait outcome (ok/error/timeout) and includes error text in Notes when available.
  • Continues best-effort announce even when agent.wait reports error or timeout so requesters aren’t left hanging.

Tests

  • Adds src/agents/subagent-announce.format.test.ts to ensure unstructured output is wrapped and error details are included.

Scope

  • Intentionally limited to announce formatting + outcome surfacing only.

@steipete
steipete force-pushed the fix/817-structured-announce branch from bc04028 to bf42e2b Compare January 15, 2026 04:47
@steipete
steipete merged commit 1baa55c into openclaw:main Jan 15, 2026
@steipete

Copy link
Copy Markdown
Contributor

Landed via temp rebase onto main; squash-merged.\n\n- Gate: pnpm lint (warnings) && pnpm build (fails: TS2339 in src/agents/pi-tools.policy.ts and src/gateway/server-methods/config.ts); pnpm test not run\n- Land commit: bf42e2b\n- Merge commit: 1baa55c\n\nThanks @roshanasingh4!

lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
* docs: clarify subagent announce status

* Make subagent announce structured and include run outcome

* fix: stabilize sub-agent announce status (openclaw#835) (thanks @roshanasingh4)

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
* docs: clarify subagent announce status

* Make subagent announce structured and include run outcome

* fix: stabilize sub-agent announce status (openclaw#835) (thanks @roshanasingh4)

---------

Co-authored-by: Peter Steinberger <[email protected]>
zeekay pushed a commit to Dream-AI-4444/clawdbot that referenced this pull request Sep 11, 2026
* docs: clarify subagent announce status

* Make subagent announce structured and include run outcome

* fix: stabilize sub-agent announce status (openclaw#835) (thanks @roshanasingh4)

---------

Co-authored-by: Peter Steinberger <[email protected]>
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
* docs: clarify subagent announce status

* Make subagent announce structured and include run outcome

* fix: stabilize sub-agent announce status (openclaw#835) (thanks @roshanasingh4)

---------

Co-authored-by: Peter Steinberger <[email protected]>
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.

Subagent architecture: small improvements

2 participants