docs/mcp.md said that setting `closed` keeps the direct selection. Setting
it to false removes the closing segment, so the selection drops that
segment and each of its end anchors that no other selected segment uses.
The tests opening_a_path_* in crates/engine/src/tests/script_dom_paths.rs
cover these cases.