{"version":"2.1.265","anchor":"new-cli-flag-attach-serve-for-desktop-app-helper-sessions","canonical_anchor":"new-attach-serve-cli-flag-to-attach-a-headless-client-to-a","heading":"New --attach-serve flag for headless cloud session helpers","tier":"use","area":"Desktop App","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/new-cli-flag-attach-serve-for-desktop-app-helper-sessions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### New --attach-serve flag for headless cloud session helpers\n\nA new hidden --attach-serve flag attaches a headless, serve-only client to an existing cloud session\n\n**Unclear.** Exactly how the desktop app uses this attached helper session isn't stated.\n\n**What**\n\nA 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.\n\nThe flag is rejected if combined with `--cloud`\/`--remote`, and it requires the non-interactive stream-json serve mode.\n\n**Why**\n\nThis 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.\n\n- Area: Desktop App\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}