Repository navigation
changes --copy-to never loses a file changed where it copies - #153
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 14cf8df015
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A file in DIR that differs from both what the workspace started from and what the copy would write refuses the copy before anything is written; --force overwrites. A workspace made with --uncommitted keeps what it started from, so its copied-in files count as its start. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
lydakis
force-pushed
the
claude/project-thread-clh2lc
branch
from
October 26, 2026 00:40
15cd1cd to
849d9db
Compare
This was referenced Oct 26, 2026
Merged
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.
Requested by George · project thread
Copying a task's results back into the folder it came from (
sandfs changes NAME --copy-to "$PWD") used to overwrite whatever it listed. If you had edited one of those files in the meantime, your edit was lost. Because of that, Sonny's role text had to tell the lead to keep its hands off a task's files until the task was done.Changes
copy::copy_to: before anything is written, it compares every listed path in DIR with two states: what the workspace started from, and what the copy would write there. If the file differs from both (it was edited, deleted or replaced in DIR since), the whole copy is refused, and the error names each such file.--forceoverwrites, as before. A path that is missing from DIR is always written, so copying into an empty folder (--copy-to ~/kept) works as before. Modes are not compared. A folder counts as unchanged only if everything in it is in the workspace's start as the same kind of thing (so a link in place of a starting folder is a change).--since, it is the source plus the uncommitted files a fork of a clone copied in.git::startnow keeps those files inworkspaces/NAME/start/(Home::keep_start, hard-linked objects), and forking a workspace carries that snapshot along (Home::copy_start). With--since, it is the--sinceworkspace. For a host folder copied back into itself, the source is that same live folder, so the check can't see edits there. The README says so, and the frozen plain-folderforkthat comes next fixes it.EISDIR.forkcommand).Testing
files_changed_where_they_are_copied_are_never_lostcovers an untouched file, an edited file, an edited deleted file, a folder that gained a file, a link put in place of a starting folder, and--force.a_fork_of_a_clone_carries_uncommitted_files_and_pushes_back_on_its_own_branch) now copies back into the repository. It shows that the uncommitted files the copy started with are replaced, that a file edited since refuses the copy with nothing written, and that--forcewrites it anyway.cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkare clean, andcargo test -p sandfs-clipasses on Linux FUSE.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2