My understanding across SE is that such edits are not okay (have rolled back a fair number of them which always got approved) and that a new question should be asked instead if necessary, is this different on this specific SE or should that edit get rolled back?
The reason I edited it was to include the details in the comments that the answer did not consider. Hence the need for an edit to the question to make sure that answers are in scope of the context of the question.
This happens from time to time and is the primary reason why we push so hard for posters to add the details in their Questions and not leave them in the comments.
Where possible, we encourage the OP to include clarifying comments onto their post, or just edit them in. This goes not only for mods but for anyone with edit permissions.
And this is actually the case across most of SE.
Yes, we want to ensure the answers are valid for future visitors, but we also want them to be valid for the OP.