Skip to content

Refactor dry run and real run to share a single file-collection pass - #10

Merged
adnissen merged 1 commit into
mainfrom
claude/dry-run-real-run-refactor-22rs2a
Aug 7, 2026
Merged

Refactor dry run and real run to share a single file-collection pass#10
adnissen merged 1 commit into
mainfrom
claude/dry-run-real-run-refactor-22rs2a

Conversation

@adnissen

@adnissen adnissen commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Previously the summary/preview and the actual flatten each traversed the
filesystem with their own near-identical recursive function, so the two
could disagree if the tree changed between passes. Now a single
collect_flatten_plan traversal accumulates the list of files to move
(plus the top-level directories), and both the preview and
move_files_to_root operate on that list.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01TmPPaWCcZ91CecX5FRBvU8

Previously the summary/preview and the actual flatten each traversed the
filesystem with their own near-identical recursive function, so the two
could disagree if the tree changed between passes. Now a single
collect_flatten_plan traversal accumulates the list of files to move
(plus the top-level directories), and both the preview and
move_files_to_root operate on that list.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmPPaWCcZ91CecX5FRBvU8
@adnissen
adnissen merged commit 47ba493 into main Aug 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants