Repository navigation
fix(git): bind diff reviews to displayed content - #354
Merged
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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
When another process writes or stages a file during a diff load, Mark Reviewed can currently record a newer patch that the diff never displayed. Bind the captured text and image bytes to the object IDs from the same raw/patch Git output that supplies the review fingerprint. Preserve Git clean filters, line endings, symlinks, SHA-1/SHA-256 repositories, rename/copy paths, and existing batched fingerprints.
Use in-process blob hashes for stored Git contents; only worktree conversion needs an additional Git command. Add deterministic concurrent-write regressions against the production loader and review store.
@coderabbitai summary
GitHub Project
PR Type
Validation
Status: passed
Command:
python3 -B mac/tests/test_diff_review_snapshot.pyResult: 338 checks passed, including concurrent index/worktree/untracked writes, restored-content and third-write races, images, symlinks, rename/copy status, binary data, size limits, modes, filters, CRLF, BOM, and both Git object formats.
Status: failed
Command:
python3 -B mac/tests/test_diff_review_snapshot.py --source-ref b291210Result: Expected regression reproduction: 28 of 265 checks failed on the previous implementation, including unseen text and image content receiving reviewed state. The current implementation passes the same assertions.
Status: passed
Command:
python3 -B mac/tests/test_git_status_snapshot.pyResult: All 19 existing snapshot tests passed. The 600-file fixtures retained 10 Git commands for untracked files and 11 for tracked worktree/staged files.
Status: passed
Command:
make format && git diff --checkResult: Formatted 1,195 Swift and 162 Rust files; no changes outside the four files in this PR and no whitespace errors.
Status: passed
Command:
make runResult: The coordinating reviewer independently completed the full Debug build and launched the app from this worktree. The reviewer also reran the snapshot regression and confirmed 338 checks with zero failures.
Status: passed
Command:
codesign --verify --deep --strict <built-debug-app>; independent read-only review of429e371..fd30650Result: The built app signature passed. Independent correctness and simplification review found no blocking issue; 18 additional real-Git copy assertions verified that reviewing a destination cannot review its source or later unseen destination bytes.
Status: not run
Reason: CI completion is not awaited for this maintainer-authorized change.
Risk and Rollback
Related Issue
None
AI Attribution