- Plain `mcp` routed to a headless session runs a blocking render as a long job again
(progress, other requests, cancellation): the long-job path uses the routed session.
- A tool's calls all go to one route, so a window closing mid-tool can't split them.
- The window's `agent_folders` answer is narrowed to the command's folders.
- A write-only session names its write folder as its read folder too.
- `file.revert` checks the open project's file against the read folders; `file.save` with
a non-string `path` checks the open project's file against the write folders.
- Reverting (and the reload after the file changed) keeps an agent's footage limits.
- An agent request queued before the switch turned off, or the folders changed, doesn't run;
a request with other limits waits until queued input from another scope was applied.
- Docs: several write roots need --headless. Tests: fixture cleanup, broken-pipe write.
Co-Authored-By: Claude Opus 5.5 <[email protected]>