Pathfinding can be implemented to operate only within a maximum distance from the start-goal line segment in order to make the effect distance of the environment on the solution path be well-defined.
https://cdn.masto.host/mastodongamedevplace/media_attachments/files/112/491/416/105/923/873/original/a8873aa0236a0e8a.png