fix(test): use effect helper in snapshot race test (#20567)

pull/20539/head^2
Kit Langton 2026-04-01 20:05:47 -04:00 committed by GitHub
parent f6fd43e574
commit 92f8e03160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ it.live("tool execution produces non-empty session diff (snapshot race)", () =>
expect(fileExists).toBe(true) expect(fileExists).toBe(true)
// Verify the tool call completed (in the first assistant message) // Verify the tool call completed (in the first assistant message)
const allMsgs = yield* Effect.promise(() => MessageV2.filterCompacted(MessageV2.stream(session.id))) const allMsgs = yield* MessageV2.filterCompactedEffect(session.id)
const tool = allMsgs const tool = allMsgs
.flatMap((m) => m.parts) .flatMap((m) => m.parts)
.find((p): p is MessageV2.ToolPart => p.type === "tool" && p.tool === "bash") .find((p): p is MessageV2.ToolPart => p.type === "tool" && p.tool === "bash")