Skip to content

fix: allow subagent spawns from system events - #132890

Merged
shakkernerd merged 1 commit into
mainfrom
fix/cron-event-internal-channels
Aug 29, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/cron-event-internal-channels

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Closes #132817

What Problem This Solves

Fixes an issue where cron and exec-completion system-event turns could not start subagents on CLI-backed agent runtimes because their internal source identifiers were rejected as unknown channels.

Why This Change Was Made

The shared internal non-delivery channel policy now recognizes the existing cron-event and exec-event source identifiers. This preserves event provenance while allowing the existing Gateway validation path to accept child runs; delivery routing and external channel behavior are unchanged.

User Impact

Cron system-event and exec-completion turns can use sessions_spawn without failing with an unknown-channel error.

Evidence

  • Pre-fix owner-boundary reproduction: cron-event: false, exec-event: false.
  • Post-fix owner-boundary reproduction: cron-event: true, exec-event: true.
  • Existing classification table extended for both source identifiers.
  • Existing Gateway acceptance table extended for both channel and replyChannel.
  • Targeted formatting and git diff --check: passed.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Aug 29, 2026
@shakkernerd shakkernerd self-assigned this Aug 29, 2026
@shakkernerd
shakkernerd force-pushed the fix/cron-event-internal-channels branch from ef0dcf1 to 46a1425 Compare August 29, 2026 22:54
@shakkernerd
shakkernerd merged commit 1d17226 into main Aug 29, 2026
42 checks passed
@shakkernerd
shakkernerd deleted the fix/cron-event-internal-channels branch August 29, 2026 22:55
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: Cron and exec-completion system-event turns can now start subagents without unknown-channel failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sessions_spawn from a cron systemEvent session fails with invalid agent params: unknown channel: cron-event

1 participant