Repository navigation
Sonny: sandfs 0.9, frozen copies for folders on another disk, and a waiting task gives memory back - #271
Merged
Conversation
… over sonny task done NAME, from the lead's folder, deletes the task and then its folder: a sandfs copy (unmounted) or a worktree, whose branch stays while its commits aren't merged. It refuses while the folder holds work that is nowhere else: in a sandfs copy, files that differ from the lead's folder and commits on no remote; in a worktree, uncommitted changes. --apply writes a sandfs copy's changes back first, --discard drops them. sonny task gc lists task folders whose task is gone, and Sonny no longer mounts those again at start. The lead is told to end tasks this way. task changes --apply now writes at the top of the folder the copy is of, not in the lead's subfolder. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
…ks the chosen daemon A staged edit whose working file was put back, and a file made to run, were taken as saved, so task done would delete the only copy of them. Remount asked the default daemon for its bots even when Sonny was given another store and socket. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
…s git names whole Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
…and a waiting task's copy gives memory back sandfs 0.9 keeps the copy of a folder on another disk on that disk, in a .sandfs folder at its top, so the workspace over the folder itself (over mode) goes: a file the task looked at no longer stays as it first saw it, and --apply refuses what changed in the folder meanwhile. A plain folder on a disk that can't clone files is copied in full. A task that is done, failed or needs the person has its copy trim what it can read again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
…is change Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGETmgGUb8hcSEpppQK
lydakis
pushed a commit
that referenced
this pull request
Oct 28, 2026
#271) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
This was referenced Oct 28, 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.
What changes
sandfs = "0.9"./Volumes/workplace) got a live workspace laid over the folder itself, "over mode"..sandfsfolder at the disk's top (sandfs#189).same_disk. Every plain folder now gets a copy of the folder as it is now: a file the task looked at no longer stays as it first saw it, and--applyrefuses a file changed in the folder since, unless given--force.allow_copy, so on a disk that can't clone files (ext4) its files are copied in full rather than the task being refused.task::trim(name): when a task is done, has failed or needs the person, Sonny calls sandfs's newHome::trimfor that task's copy, on its own thread.Home::trimsaves the copy's writes, drops listings, file bytes and idle git helpers, and hands the freed memory back to the system.~/.agent/tasks/NAME.Tests
a_plain_folder_on_another_disk_is_copied_on_that_disk. It checks that a change made to the folder after the copy doesn't show up in it, and that the task's edit stays in its copy until applied.same_diskis gone.cargo test -p sonny: 271 unit tests and 12 task tests pass on Linux, against sandfs 0.9.0 from crates.io.Note on the branch
This branch earlier held the commits of agent#252, which was closed as superseded by agent#227. A merge with the
oursstrategy keeps those commits in the branch's history, but none of their changes are in this PR's diff.