* Run go mod tidy after go mod edit in Replace
go mod edit is a text edit that doesn't touch go.sum, so a replacement
whose transitive requirements differ from the original leaves the
module unbuildable until tidy runs. Chain tidy the same way Add
already does via then: in gomod.yaml, so Replace leaves the project
buildable for every manager.
* Propagate Extra to the chained tidy step
So flags like -modfile apply consistently across edit and tidy.
Matches how the composer chain already threads Extra through.