- One document session for the command's whole run: a route or agent-folder change swaps only
its automation roots, so open documents, unsaved edits and undo history stay.
- The command's own --automation-*-root folders count as a pair, as given, on every route; a
path a window tool names (ui.open, ui.pick) is checked against them before it is sent.
- `mcp --when-closed` without a value is refused (value_of_flag).
- resources/list returns the session lookup error instead of an empty list.
- The switch turning off withdraws input an agent queued, so it can't run unconfined.
Co-Authored-By: Claude Opus 5.5 <[email protected]>