- A token file the preferences need that can't be written or read leaves
the control server off for that launch, with an "Agent control is off"
notice and the reason on standard error, instead of exiting before the
window opens. A file named by --control-token-file still exits 2.
- Each preference folder is opened once and its capability combined with
the flags' (AuthorizedWorkspace::with_read_from / with_write_from), so a
folder that goes away mid-launch is left out instead of exiting 2.
- A relative folder preference is left out with a warning; flags keep
their behaviour.
- tokenFile is published as an absolute path.
- read_connection refuses anything but a regular file (a FIFO can't block
startup) and reads invalid UTF-8 as no connection, so it is removed.
- Docs: a client checks that the connection file's pid is running before
sending the token; the token-file failure case.
- Tests: a preference-started server publishes a connection whose token
authenticates against the real control server; the unwritable token
file; relative folders and token paths; non-regular and non-UTF-8
connection files; the Integrations UI test finds the text fields.
Co-Authored-By: Claude Opus 5.5 <[email protected]>