Skip to content

Commit 9cbf352

Browse files
committed
fix bug
1 parent de7b804 commit 9cbf352

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.agents/editor/best-of-n/editor-multi-prompt2.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ function* handleStepsMultiPrompt({
237237
? jsonResult.value
238238
: [jsonResult.value]
239239

240-
return spawnedResults.map((result: any) => result?.value).filter(Boolean)
240+
return spawnedResults
241+
.map((result: any) => result?.value)
242+
.map((result: any) => ('value' in result ? result.value : result))
243+
.filter(Boolean)
241244
}
242245
}
243246

0 commit comments

Comments
 (0)