Skip to content

Commit 1d17226

Browse files
committed
fix: allow subagent spawns from system events (#132890)
1 parent 90c1d79 commit 1d17226

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/gateway/server-methods/agent.events-and-subagents.test-utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ describe("gateway agent handler", () => {
746746

747747
it.each(
748748
(["channel", "replyChannel"] as const).flatMap((field) =>
749-
(["heartbeat", "cron", "webhook", "voice"] as const).map(
749+
(["heartbeat", "cron", "cron-event", "exec-event", "webhook", "voice"] as const).map(
750750
(channel) => [field, channel] as const,
751751
),
752752
),

‎src/utils/message-channel-constants.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function internalSessionConversationId(
1919
const INTERNAL_NON_DELIVERY_CHANNELS = [
2020
"heartbeat",
2121
"cron",
22+
"cron-event",
23+
"exec-event",
2224
"webhook",
2325
"voice",
2426
"sessions_send",

‎src/utils/message-channel.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import {
1818
const INTERNAL_NON_DELIVERY_CHANNELS = [
1919
"heartbeat",
2020
"cron",
21+
"cron-event",
22+
"exec-event",
2123
"webhook",
2224
"voice",
2325
"sessions_send",

0 commit comments

Comments
 (0)