Repository navigation
Fusion: list the files workers changed on the delegate result (ATO-1700, ATO-1701) - #1759
Closed
sosidudku1 wants to merge 3 commits into
Closed
sosidudku1 wants to merge 3 commits into
sosidudku1 wants to merge 3 commits into
Conversation
…1700, ATO-1701) Each worker keeps the diffstat of its ok os.fs.write / os.fs.edit calls, summed per path. A workspace worker's paths are rebased to the folder after its merge, keeping only what the merge wrote. fusion.delegate sums the rows into details.diffstats and the tool_result frame carries them as diffstats, so the desktop's Changed files card can list them.
…1700) A split parent's closed row now sums its children's diffstats, and a task the judge sent back keeps the first attempt's files next to the retry's: both stay changed in the folder.
…O-1701) Every task failing its checks still leaves its in-place writes in the folder, so the frame carries the list whatever the call's status. The fusion README describes the new module and field.
This was referenced Nov 25, 2026
Collaborator
Author
|
Merged into |
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.
Reported in Discord: after a Fusion turn the desktop shows no Changed files card, because the workers' own write results run in their sessions and never reach the chat stream.
What changed
WrittenFilesTrackeralso keeps thedetails.diffstatof each okos.fs.write/os.fs.edita worker makes, summed per path. The runner puts the list on the worker's row asdiffstats.isolation: "worktree", a task's paths are rebased from its workspace to the folder after the merge. Only files the merge wrote are kept; conflicts, refused inputs and discarded workspaces show nothing.fusion.delegatesums every row intodetails.diffstats(one row per path).tool_resultframe of an okfusion.delegatecarriesdiffstats: [{path, added, removed}], each row checked. The singlediffstatof write/edit is unchanged.The desktop side is a separate PR on rel/xp-build (ATO-1702).
Tests
worker-diffstats.test.ts: reading, summing (two workers on one file give one row), rebasing.worker-files-written.test.ts: the tracker keeps only ok write/edit diffstats.fusion-delegate.test.ts: two workers editing the same file end up as one summed row indetails.diffstats.branch-merge.test.ts: workspace paths become folder paths; a conflict and a failed task are left out.stream-tool-result-frame.test.ts: the frame carriesdiffstatsonly for an okfusion.delegate.Also covered after review:
task-tree.ts), and a task the judge sent back keeps the first attempt's files next to the retry's (fusion-delegate.ts). Tests intask-tree.test.tsandjudge.test.ts.diffstatson an all-failed delegate too: in-place writes are still in the folder, and an unmerged workspace lists none.Verification
Not yet checked on the second Mac.