Skip to content

fix(core): apply duplicate SpecStream JSONL lines - #350

Open
kevin9327 wants to merge 1 commit into
vercel-labs:mainfrom
kevin9327:fix/spec-stream-duplicate-lines
Open

kevin9327 wants to merge 1 commit into
vercel-labs:mainfrom
kevin9327:fix/spec-stream-duplicate-lines

Conversation

@kevin9327

Copy link
Copy Markdown
Contributor

Summary

createSpecStreamCompiler skipped a JSONL line if it had already seen the same trimmed text. Two identical add operations to /- (two apples in a list) dropped the second item.

The incomplete-line buffer already handles partial chunks. Identical complete lines are two operations and both must apply.

Testing

  • pnpm exec vitest run packages/core/src/types.test.ts -t createSpecStreamCompiler
  • pnpm test (1213 passed)

AI-assisted (Grok)

createSpecStreamCompiler skipped a line if it had already seen the same
trimmed JSON. Two identical add-to-array patches ("apple" then "apple")
dropped the second item. The line buffer already handles incomplete
chunks; identical complete lines are two operations and both must apply.
@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

@kevin9327 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant