{"version":"2.1.281","anchor":"ide-selection-is-captured-with-prompts-queued-mid-turn-and-h","canonical_anchor":"ide-selection-is-captured-with-prompts-queued-mid-turn-and-h","heading":"Queued prompts keep the IDE selection you had when you typed them","tier":"notice","area":"IDE Integration","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/ide-selection-is-captured-with-prompts-queued-mid-turn-and-h","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Queued prompts keep the IDE selection you had when you typed them\n\nA prompt queued mid-turn now keeps its IDE selection, shows it in the queue and keeps it if handed back for editing or dropped by a hook\n\n**What**\n\nIf you type a prompt while Claude is still working, it is queued to run after the current turn. When Claude Code is connected to your code editor (IDE), the text you have selected there is your IDE selection. That selection now stays attached to the queued prompt:\n\n- When a prompt is queued, the current IDE selection is taken and stored with it as `ideSelection`. This does not happen in bash mode.\n\n- Queued prompts that carry a selection show it, shortened, in a row under the prompt.\n\n- When the queued prompt runs, its own stored selection is used rather than whatever is selected at that moment.\n\n- The selection and any opened-file details stored with each queued prompt are sent along with it.\n\n- If a UserPromptSubmit hook drops the queued prompt, the prompt and its selection are handed back to the input box, as long as no other queued prompt is holding a selection. A hook is a script you configure to run at set points; this one runs when a prompt is submitted. The \"Prompt dropped by a hook\" notice still shows.\n\n- When queued prompts are pulled back into the input box for editing, their selections come back too. Stepping back through queued prompts stops at one that has a selection.\n\nThe queue hint now shows only while the prompt input is on screen. Two reminders, `silent_turn_reminder` and `total_tokens_reminder`, are skipped in one case: when the queued prompt was already delivered at the start of the turn.\n\n**Why**\n\nThe code you had selected when you typed a queued prompt now goes with that prompt. Before, it could be lost or picked up by whatever ran next.\n\n- Area: IDE Integration\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}