Improve this repository's automated test coverage with real code chan...#31
Draft
kivo360 wants to merge 1 commit into
Draft
Improve this repository's automated test coverage with real code chan...#31kivo360 wants to merge 1 commit into
kivo360 wants to merge 1 commit into
Conversation
kivo360
commented
Jul 12, 2026
kivo360
left a comment
Contributor
Author
There was a problem hiding this comment.
Reviewed and verified locally (checked out refs/pull/31/head).
Verdict: safe to merge — pure test coverage, no source changes.
packages/sdk/test/history.test.ts(new, 221 lines) coverseventRowToStreamEvent/eventRowsToStreamEventswith real narrowing helpers rather than casts — token/reasoning/tool_call union shapes, null rows, ordering.- Also adds
acp-client/test/acp-crossws.test.ts+ws-transport.test.ts. - Ran
vitest run test/history.test.ts→ 22/22 pass. No files undersrc/touched, so zero regression surface.
Recommend merge.
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.
Automated change by a Mozart background run.
Task
Improve this repository's automated test coverage with real code changes across multiple files. Steps: (1) explore the packages/ directory and pick 2 or 3 important source modules that currently lack dedicated unit tests (skip generated code and type-only files). (2) Study the existing test conventions (package.json scripts, existing test files) and write thorough unit tests for the modules you picked, covering edge cases and error paths. (3) If a new test exposes a genuine bug in a source module, fix the module. (4) Run the tests you added — scope the test command to the packages you touched, NOT the whole monorepo — and iterate until they pass. Hard requirements: at least 3 new test files spanning at least 2 different packages; do not reformat or refactor unrelated code; do not change README or docs.
Run
e1909d90-a02e-4747-8f59-69abb1ef189d· sessiona7b47760-2115-4dc6-9062-1e8102ccbb73