Repository navigation
Conversation
…sages (openclaw#8299) Add agents.defaults.subagents.suppressAnnounce (boolean, default false) to globally suppress sub-agent completion announcements to the parent session. Also add a per-spawn 'silent' parameter to sessions_spawn tool, allowing individual spawns to override the global setting. The per-spawn flag takes precedence over the global config. When suppressed, the announce message is skipped but cleanup (label patching, session deletion) still runs normally via the finally block. Config example: agents: defaults: subagents: suppressAnnounce: true Per-spawn example: sessions_spawn({ task: '...', silent: true }) Closes openclaw#8299
ivalsaraj
force-pushed
the
extend-8393-announce-enum
branch
from
February 10, 2026 09:56
71bb7ac to
5a0be93
Compare
…arent'|'skip') Refactor the sub-agent announce system: - Replace silent:boolean with announce:'user'|'parent'|'skip' enum - Add 'parent' mode: injects result as system event into spawning session - Add parent session wakeup on sub-agent completion - Global config: agents.defaults.subagents.announce - Per-spawn override via sessions_spawn announce param - Update tests and documentation Co-authored-by: Glucksberg <[email protected]> Co-authored-by: Valsaraj R <[email protected]>
ivalsaraj
force-pushed
the
extend-8393-announce-enum
branch
from
February 10, 2026 10:09
5a0be93 to
aaff26a
Compare
thewilloftheshadow
force-pushed
the
main
branch
from
February 15, 2026 18:46
bfc1ccb to
f92900f
Compare
This reverts commit 2e3a90c.
|
Do you know if this feature will ever be added? Thanks |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Closed
4 of 18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends #8393 by @Glucksberg. Closes #12730.
What
Replaces the
silent: booleanparameter with a more flexibleannounceenum onsessions_spawn, enabling orchestrator patterns where the parent agent can intercept sub-agent results before they reach the user.New API:
Config:
Modes
"user"(default) — Current behavior. Announce posts directly to requester chat channel."skip"— Suppresses announce entirely. Cleanup still runs. (Replacessilent: truefrom feat(subagents): add config option to suppress announce messages (#8299) #8393.)"parent"— New. Injects the announce result as a system event into the spawning (parent) session. Parent agent wakes up and can review/filter/summarize before relaying to the user.Why
Sub-agents currently announce directly to the user, bypassing the parent agent entirely. This makes orchestrator patterns impossible — the parent can't review, gate, or consolidate results from multiple sub-agents before surfacing them.
The
"parent"mode enables:Changes
sessions-spawn-tool.tsannounceparam to tool schemasubagent-announce.ts"parent"mode: system event injection + parent wakesubagent-registry.tsannouncefield in run recordssubagent-registry.store.tstypes.agent-defaults.tszod-schema.agent-defaults.tssubagents.mdImplementation notes
Parent mode flow:
runSubagentAnnounceFlowchecksannouncemodeannounce: "parent"→ format result as system event (status, summary, session key, stats)enqueueSystemEvent()Design decisions:
silent,suppressAnnounce) since feat(subagents): add config option to suppress announce messages (#8299) #8393 hasn't merged — no existing users to migratedeliver: false) to process the system event promptly"parent"mode setsdidAnnounce = trueafter injection, so cleanup semantics match"user"modeTesting
pnpm build✅pnpm check(oxlint) — 0 warnings, 0 errors ✅"parent"path end-to-end)AI disclosure
Built with AI assistance (OpenClaw + GPT-5.3 Codex + Claude Opus). Focused tests written and passing. Full build and lint validated.
Co-authored-by: @Glucksberg (base implementation from #8393)
Greptile Overview
Greptile Summary
This PR replaces the prior boolean-style sub-agent announce control with an explicit
announcerouting mode (user|parent|skip) onsessions_spawn, plus a matchingagents.defaults.subagents.announceconfig default.Core behavior is implemented in
src/agents/subagent-announce.ts:userpreserves existing behavior (requester-facing announce),skipsuppresses delivery while still allowing cleanup, andparentinjects a system event into the parent session viaenqueueSystemEvent()and wakes the parent agent via a non-deliveredagentcall (deliver: false). The announce mode is persisted on subagent run records, and tests/docs are updated to cover the new modes and persistence.Confidence Score: 5/5
sessions_spawn-> registry -> announce flow, and tests coveruser,parent, andskipbehaviors including cleanup semantics.(2/5) Greptile learns from your feedback when you react with thumbs up/down!