Skip to content

Commit b8be119

Browse files
rekram1-nodeopencode-agent[bot]
authored andcommitted
test(core): wait for complete progress capture
1 parent d4e6294 commit b8be119

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/core/test/tool-shell.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ describe("ShellTool", () => {
437437
progress: (update) =>
438438
Effect.gen(function* () {
439439
if (update.structured.truncated !== true) return
440-
if (update.content[0]?.type !== "text") return
440+
const content = update.content[0]
441+
if (content?.type !== "text") return
442+
if (content.text.indexOf("\n\n[output truncated; full output saved to:") !== ShellTool.MAX_CAPTURE_BYTES)
443+
return
441444
yield* Deferred.succeed(observed, update)
442445
yield* Effect.promise(() => fs.writeFile(releasePath, ""))
443446
}),

0 commit comments

Comments
 (0)