{"version":"2.1.269","anchor":"terminal-query-queue-now-withholds-writes-until-input-is-att","canonical_anchor":"terminal-query-queue-now-withholds-writes-until-input-is-att","heading":"Terminal query queue now withholds writes until input is attached, and barrier writes gate on it too","tier":"internal","area":"Terminal UI","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/terminal-query-queue-now-withholds-writes-until-input-is-att","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### Terminal query queue now withholds writes until input is attached, and barrier writes gate on it too\n\nTerminal probe queries now wait for input to be attached before writing, closing a race with barrier writes\n\n**What**\n\nClaude Code sends small queries to the terminal to detect things like its color theme or version. These queries now wait until the terminal's input stream is confirmed attached (`setInputAttached(true)`) before they are actually written, instead of writing immediately. A related 'barrier' write used during resync is now gated the same way, and cancelling a pending query now correctly reports failure instead of silently appearing to succeed.\n\n**Why**\n\nThis avoids sending terminal queries before the terminal is actually ready to receive them, which could previously cause queries to be lost or to appear to succeed when they had not.\n\n- Area: Terminal UI\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}