Browse Source

fix: restore status idle set in processor error handler to fix unit tests

Ryan Vogel 4 months ago
parent
commit
b0190116a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/opencode/src/session/processor.ts

+ 1 - 0
packages/opencode/src/session/processor.ts

@@ -533,6 +533,7 @@ export const layer: Layer.Layer<
           sessionID: ctx.assistantMessage.sessionID,
           error: ctx.assistantMessage.error,
         })
+        yield* status.set(ctx.sessionID, { type: "idle" })
       })
 
       const process = Effect.fn("SessionProcessor.process")(function* (streamInput: LLM.StreamInput) {