feat(jev): preview draft comments when routing issues - #2080
Merged
Merged
Conversation
CoverageTotal: 97.82% ⚪ 0 pp vs Comparing
🔇 233 ignored region(s), 0 tolerated region(s)
Patch coveragePatch: 100% (355/355 new lines covered)
Indirect coverage changes🔴 0 lines lost coverage, 🟢 2 lines gained coverage on unchanged code. Indirect changes
|
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 1, 2026
newhoggy
force-pushed
the
issue-1821-route-draft-comment
branch
from
October 1, 2026 13:03
7369de6 to
ef4a0fa
Compare
Append ordered local drafts to routing and code-masked citation input. Reject invalid files and batch previews before external work, and label JSON, YAML and text reports with the original source paths. Preserve no-draft behavior and cover assembly, dependencies, truncation, CLI errors and report provenance with offline regression tests. Fixes #1821
newhoggy
force-pushed
the
issue-1821-route-draft-comment
branch
from
October 1, 2026 14:02
ef4a0fa to
c2705a0
Compare
newhoggy
enabled auto-merge
October 1, 2026 14:06
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.
Description
routepreviously required publishing a comment before checking how it changed routing. Add repeatable--draft-comment FILEto preview local comments on a single issue. Drafts follow fetched comments in supplied order, share the routing input cap and code-masked dependency scan, and never write to GitHub or the issue cache.JSON, YAML, and text reports identify the original source paths, including failed previews. Invalid scope, missing files, invalid UTF-8, and empty drafts fail before client setup or fetching. Without the flag, existing input and output remain unchanged.
Type of Change
Related Issue
Fixes #1821
Changes Made
Testing
cargo fmt --all -- --check.cargo clippy --all-targets --all-features -- -D warnings.omni-dev coverage lint-markersusing the built binary and this worktree.cargo testcommand, including all integration targets and doctests.cargo test --features mcpcommand, including all integration targets and doctests (13,136 library tests passed; one ignored).An initial sandboxed run could not bind local test sockets. The unrestricted reruns above passed. An existing PTY test failed once under concurrent load and passed alone and in the full isolated rerun.
New regression cases cover file and scope errors, ordering, outer trimming, Unicode/truncation, citation masking and resolution, unchanged routing questions, batch rejection before requests, and JSON/YAML/text provenance for successful and failed previews.
CI reports 100% patch coverage (355/355 measured new lines) and 97.82% total coverage, with zero lines losing coverage. See the coverage run.
Review
Reviewed the signed commit against the issue plan, including early validation, unchanged no-draft behavior, shared truncation and citation masking, cache isolation, and preview labeling for success and failure. No outstanding code findings. The commit-twiddle workflow verified the message and corrected its body newline formatting.