{"version":"2.1.271","anchor":"chat-text-input-supports-a-protectednon-deletable-prefix-se","canonical_anchor":"ide-selection-indicator-moved-from-a-side-box-into-a-dismiss","heading":"IDE file\/selection status now shown as a dismissible pill inside the prompt input","tier":"notice","area":"Prompt Input","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/chat-text-input-supports-a-protectednon-deletable-prefix-se","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### IDE file\/selection status now shown as a dismissible pill inside the prompt input\n\nThe connected editor's current file\/selection now appears as a dismissible pill inside the prompt box instead of a separate sidebar\n\n**Unclear.** The finding does not say what feature uses this protected prefix or what text it displays.\n\n**What**\n\n- The prompt input now shows IDE-selection status (the current file\/selection from a connected editor) as a `leadingPill` embedded at the start of the input text, replacing the old separate sidebar box.\n\n- The pill can be dismissed: a new `dismissIdeSelection` handler is wired to the pill's delete action, and a hash of the last-dismissed selection is tracked so the same selection doesn't reappear right after being dismissed.\n\n- The underlying text input component gained a `leadingPill` prop, rendered before the main text with its own highlight color and correctly offsetting cursor position and highlight ranges.\n\n- The text-editing logic (kill\/yank, backspace, delete, Home\/End, Enter) was reworked to treat this leading content as a protected prefix: backspace at the prefix boundary calls the pill's delete callback instead of erasing into it.\n\n**Why**\n\nThis keeps the current file\/selection context visible directly in the prompt instead of in a separate box, while preventing it from being accidentally deleted or re-shown right after being dismissed.\n\n- Area: Prompt Input\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}