Repository navigation
fix(git): refresh retained rename diff baselines - #355
Merged
Merged
Conversation
Resolve live worktree rename metadata before loading retained tabs and keep before-side content and filenames aligned with the current index. Treat status failures as read errors and cover Git state transitions with production-loader regressions. Co-authored-by: Codex <noreply@openai.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-authored-by: Codex <noreply@openai.com>
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
Retained worktree rename tabs kept reading their original path after the rename was staged, so their before-side content and filename could disagree with the current index. Resolve the current rename/copy state before reloading those tabs and report a read error when Git status cannot be verified.
Add regressions for staging, worktree edits, reset to untracked, restaging, committing, source-path reuse, literal filenames, images, and status failure recovery. Ordinary and historical tabs retain their existing Git command count.
@coderabbitai summary
GitHub Project
PR Type
Validation
Status: passed
Command: python3 -B mac/tests/test_diff_rename_baseline.py
Result: 101 assertions passed against the production reload, content readers, status parser, and review store with real disposable Git repositories.
Status: passed
Command: python3 -B mac/tests/test_diff_review_snapshot.py
Result: All 338 existing snapshot assertions passed after updating the fixture to include the production status parser.
Status: passed
Command: python3 -B mac/tests/test_diff_rename_baseline.py --source-ref 429e371
Result: The negative control exited 1 as expected, with 31 failed assertions reproducing stale baselines, stale filenames, and editable stale state before this fix.
Status: passed
Command: make format
Result: Swift and Rust formatting completed; git diff --check passed.
Status: passed
Command:
make run DERIVED_DATA=<temporary-build>;codesign --verify --deep --strict <built-debug-app>;python3 -B mac/tests/test_diff_rename_baseline.py --derived-data <temporary-build>Result: The full macOS Debug app built, launched and passed signature verification. The compiled app fixture passed 95 rename-baseline assertions.
Status: passed
Command:
python3 -B mac/tests/test_diff_rename_baseline.py;python3 -B mac/tests/test_diff_review_snapshot.py;python3 -B mac/tests/test_git_status_snapshot.pyResult: Production source probes passed 109, 338 and 19 checks. The old revision negative control failed 35 checks as expected. Independent review found no blocking issue.
Status: not run
Reason: CI completion is not awaited for this maintainer-authorized change.
Risk and Rollback
Related Issue
None
AI Attribution