A new hidden --attach-serve <session_id> flag attaches a headless, serve-only client to an existing cloud session
What
A new hidden CLI flag, --attach-serve <session_id>, attaches a serve-only helper to an existing, bound cloud session (identified by an id like cse_...) instead of creating a new one. It's meant for sessions spawned by the desktop app and is not for interactive use.
The flag is rejected if combined with --cloud/--remote, and it requires the non-interactive stream-json serve mode.
Why
This lets the desktop app attach a lightweight headless client to a cloud session it already created, rather than spinning up a new session each time.
Exactly how the desktop app uses this attached helper session isn't stated.