feat(session): support admit-only synthetic messages (#35774)

This commit is contained in:
James Long
2026-07-07 14:17:20 -04:00
committed by GitHub
parent cb18a42a47
commit 3e57b43a4a
7 changed files with 27 additions and 2 deletions
+2
View File
@@ -243,6 +243,7 @@ export interface Interface {
text: string
description?: string
metadata?: Record<string, unknown>
resume?: boolean
}) => Effect.Effect<void, NotFoundError>
readonly revert: {
readonly stage: (input: {
@@ -682,6 +683,7 @@ const layer = Layer.effect(
description: input.description,
metadata: input.metadata,
})
if (input.resume === false) return
yield* execution
.resume(input.sessionID)
.pipe(Effect.ignore, Effect.forkIn(scope, { startImmediately: true }), Effect.asVoid)