{"version":"2.1.328","anchor":"remote-session-restart-reason-categories-and-sendmessage-pro","canonical_anchor":"remote-session-restart-reason-categories-and-sendmessage-pro","heading":"Remote sessions now record why they restarted","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/remote-session-restart-reason-categories-and-sendmessage-pro","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Remote sessions now record why they restarted\n\nClaude Code now sorts remote session restarts into named reasons and builds SendMessage's instructions using whether CLAUDE_CODE_REMOTE is set\n\n**Unclear.** It is not clear what the extra information changes in the SendMessage tool's instructions.\n\n**What**\n\nA remote session is one that runs on a server rather than on your own machine. Claude Code now has a fixed list of reasons a remote session restarted:\n\n- `session_created`\n\n- `no_runner_registered`\n\n- `hook_failed`\n\n- `runner_lost`\n\n- `runner_reported_failure`\n\n- `resumed`\n\n- `requeued`\n\n- `server_retry`\n\n- `prewarm`\n\nAny other value is recorded as \"other\" or \"none\". The client also reports one more capability it supports.\n\nWhen Claude Code builds the instructions for the SendMessage tool, it now passes one more piece of information: whether it is running outside a remote session, meaning `CLAUDE_CODE_REMOTE` is not set.\n\n**Why**\n\nThese changes affect how remote sessions are tracked and how they behave.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}