feat(acp): add sessions_spawn streamTo parent relay for ACP spawns#34310
Merged
osolmaz merged 1 commit intoopenclaw:mainfrom Mar 4, 2026
Merged
Conversation
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.
Summary
sessions_spawnruns are non-blocking but gave poor parent-session visibility during long or blocked initial turns.sessions_spawn.streamTo: "parent"support forruntime: "acp".streamTo: "parent"is used, direct child delivery for that initial run is disabled.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
sessions_spawnnow acceptsstreamTo: "parent"for ACP runtime.runtime: "acp"+streamTo: "parent", requester session receives progress/no-output/completion/failure system-event updates for the initial child run.deliver: falsein that mode to avoid direct child-delivery duplication.Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:Repro + Verification
Environment
Steps
sessions_spawnwith{ runtime: "acp", streamTo: "parent", task: "..." }from an active requester session.Expected
Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
deliver=false)streamTo: "parent"rejected when requester session context is missingCompatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
streamTo: "parent"(default behavior unchanged)src/agents/acp-spawn-parent-stream.tssrc/agents/acp-spawn.tssrc/agents/tools/sessions-spawn-tool.tsstreamTo: "parent"Risks and Mitigations
streamTo: "parent"could silently fail.Original PR: #34055