Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@roshanasingh4
Copy link
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
10 of 22 checks passed
@steipete
Copy link
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!

steipete added a commit to mneves75/clawdbot that referenced this pull request Jan 15, 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]>
cpojer pushed a commit to cpojer/clawdbot that referenced this pull request Jan 16, 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