fix(opencode): untrace streaming event hot paths (#23156)

This commit is contained in:
Kit Langton
2026-04-17 15:29:32 -04:00
committed by GitHub
parent aa05b9abe5
commit f83cecaaf6
2 changed files with 5 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ export const layer: Layer.Layer<
return true
})
const handleEvent = Effect.fn("SessionProcessor.handleEvent")(function* (value: StreamEvent) {
const handleEvent = Effect.fnUntraced(function* (value: StreamEvent) {
switch (value.type) {
case "start":
yield* status.set(ctx.sessionID, { type: "busy" })

View File

@@ -649,10 +649,10 @@ export const layer: Layer.Layer<Service, never, Bus.Service | Storage.Service> =
return input.partID
})
const updatePartDelta = Effect.fn("Session.updatePartDelta")(function* (input: {
sessionID: SessionID
messageID: MessageID
partID: PartID
const updatePartDelta = Effect.fnUntraced(function* (input: {
sessionID: SessionID
messageID: MessageID
partID: PartID
field: string
delta: string
}) {