fix(ai): keep smoothed text ahead of tool execution#17046
Open
iroiro147 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
smoothStreamwith a multi-stepstreamTexttool callaiFixes #13199.
Tests
npx --yes pnpm@10.33.4 install --frozen-lockfilenpx --yes pnpm@10.33.4 --filter ai... buildnpx --yes pnpm@10.33.4 --dir packages/ai exec vitest --config vitest.node.config.js --run src/generate-text/stream-text.test.ts(408 passed)npx --yes pnpm@10.33.4 --dir packages/ai exec vitest --config vitest.node.config.js --run src/generate-text/stream-text.test.ts src/generate-text/smooth-stream.test.ts src/generate-text/execute-tools-from-stream.test.ts(458 passed)npx --yes pnpm@10.33.4 --dir packages/ai exec vitest --config vitest.edge.config.js --run src/generate-text/stream-text.test.ts src/generate-text/smooth-stream.test.ts src/generate-text/execute-tools-from-stream.test.ts(458 passed)npx --yes pnpm@10.33.4 --filter ai type-checknpx --yes pnpm@10.33.4 exec oxfmt --check packages/ai/src/generate-text/execute-tools-from-stream.ts packages/ai/src/generate-text/stream-text.ts packages/ai/src/generate-text/stream-text.test.ts .changeset/smoothstream-tool-order.mdnpx --yes pnpm@10.33.4 exec oxlint packages/ai/src/generate-text/execute-tools-from-stream.ts packages/ai/src/generate-text/stream-text.ts packages/ai/src/generate-text/stream-text.test.tsgit diff --check