Preserve partial results and definition NDJSON in batch summaries - #5354
Merged
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
Batch JSON summaries discarded usable exit-11 query output and serialized multi-row definition NDJSON as escaped stdout. Preserve validated partial rows, terminal metadata and continuation cursors alongside the existing error status, exit code and failure accounting. Normalize definition NDJSON to a stable
resultsarray and retain document output for find/definition envelopes.Partial-output parsing uses the existing capture and JSON-depth limits, reconciles terminal/envelope counts with retained rows, and rejects malformed or conflicting output. Scoped regex find with origin filters also retains partial rows and counts. Verbose/profile diagnostic records are retained without contributing to result counts. Explicit capture/cancellation/timeout errors and unrelated failures keep their typed-error paths. Parent output budgets and input ordering remain enforced.
Validation
dotnet build -p:UseSharedCompilation=false— zero warnings/errors.make lint— full-solution whitespace validation passed.dotnet run --project tools/CodeIndex.Changelog -- checkandgit diff --checkpassed.Documentation and changelog
Updated CLI help and the English/Japanese sections of
USER_GUIDE.md,DEVELOPER_GUIDE.md, andTESTING_GUIDE.md. Addedchangelog.d/unreleased/5344.fixed.md;CHANGELOG.mdand agent instruction files are unchanged.Fixes #5344