Repository navigation
fix(orchestrator): let --affected run in a sparse checkout - #5908
Merged
Merged
Conversation
Every --affected run, and every --filter that walks the graph or reads tags, loaded each locked project and refused one a sparse checkout left out, though the diff reached none of it. Selection now reads such a project's config from the lock, and an --affected run refuses it only when a task it keeps is that project's or depends on one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYZxNabyhMT7Q9Qhf5m
The first cut fell back to the raw lock on any failed staged load, which hid a deleted project's or unreadable directory's refusal and skipped the root spelling and default build. The selection's load now takes sparseLater, and a load that left a project out is never handed to the run, whose own load refuses what it needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYZxNabyhMT7Q9Qhf5m
Exelord
enabled auto-merge (squash)
December 1, 2026 06:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYZxNabyhMT7Q9Qhf5m
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 M · project thread
--affectedworks in a sparse checkoutBefore: in a sparse checkout that leaves project
bout, every--affectedrun was refused, even with no change at all, and so was a--filterthat walks the graph or reads tags:After: the run refuses
bonly when a task the diff reaches isb's or depends on one ofb's. Otherwise it runs:How it works
Selection's staged load (for a graph walk or
tag:) now loads withsparseLater: a left-out project's config comes from the lock (where a run reads it anyway) and is named insparseLeft; such a load is never handed to the run. An--affectedrun loads the same way, and after the diff narrows the graph it refuses with the same message when a kept node is that project's. Runs without--affectedrefuse at load as before. docs/cli.md § sparse checkout.Breaking changes
None
Proof
tests/sparse-checkout-config.test.ts"--affected refuses the excluded project only when what it reaches needs it"https://claude.ai/code/session_01W6xuYZxNabyhMT7Q9Qhf5m
Generated by Claude Code