{"version":"2.1.326","anchor":"remote-sessions-ping-endpoint-and-async-message-cancel-trac","canonical_anchor":"remote-sessions-ping-endpoint-and-async-message-cancel-trac","heading":"Remote sessions can cancel queued messages and check which one was dropped","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/remote-sessions-ping-endpoint-and-async-message-cancel-trac","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Remote sessions can cancel queued messages and check which one was dropped\n\nRemote sessions gain cancel tracking for queued messages, a message_uuid in the cancel result, a stricter take-back check and a new ping call\n\n**What**\n\nA remote session is a Claude Code session running somewhere other than your terminal, which your terminal talks to over the network. Several pieces of work let a message you have queued in such a session be cancelled and confirmed:\n\n- A new tracker handles `cancel_async_message` control requests and messages that have been withdrawn. It is gated by `tengu_stateless_treasure`, a server-controlled switch whose built-in fallback is off. The flag server returned off for this site's account and for the anonymous baseline; no reading has been taken under this release yet.\n\n- The `cancel_async_message` result can now include an optional `message_uuid` naming the message that was dropped. Before, it only said whether something was cancelled.\n\n- Taking back a message from the thin client now counts as \"taken_back\" only when the response says cancelled and its `message_uuid` matches the message you meant. The old code read the wrong variable.\n\n- `SessionsV2Client` gained a `ping` method that sends a POST to `\/v1\/code\/sessions\/{id}\/ping`.\n\n- Reconnecting now rounds the wait between attempts, and keeps trying without a limit when redialling past its budget.\n\n**Why**\n\nIf you take back a queued message, Claude Code no longer reports success when the cancel actually hit a different message. Programs built on the SDK can also see exactly which message was dropped.\n\n- Flag `tengu_stateless_treasure`: Off in both readings (read for one account on one subscription tier against v2.1.326; this account: off, anonymous baseline: off, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Sessions\n- Names: `tengu_stateless_treasure`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}