{"version":"2.1.327","anchor":"cloudstatusbeforeinit-initialize-option-for-cloud-sessions","canonical_anchor":"cloudstatusbeforeinit-initialize-option-for-cloud-sessions","heading":"Hosts can get a cloud session's ID before it finishes starting","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/cloudstatusbeforeinit-initialize-option-for-cloud-sessions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Hosts can get a cloud session's ID before it finishes starting\n\nA new start-up option asks Claude Code to report a cloud session's status, including its ID, before the first setup message\n\n**What**\n\nWhen a program starts a cloud-hosted session through Claude Code, it sends a first setup request. That request can now include an optional `cloudStatusBeforeInit` setting. When set, Claude Code reports the cloud session's status as soon as it has opened the session, without waiting for setup to finish. The program can then learn the session ID while the session's container (the isolated machine it runs in) is still starting.\n\nThe option is marked internal. It is ignored when Claude Code is not the one connecting to a cloud session.\n\n**Why**\n\nPrograms that build on Claude Code and start cloud sessions can know which session they started sooner.\n\n- Area: SDK\n- Names: `cloudStatusBeforeInit`\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}