fix(ui): restore long-paste cards, sent as message text (#201137) ## Problem #191699 stopped Control UI from turning long pastes into a pasted-text card, so pasting more than 1,000 characters into an existing draft dumped the whole text into the composer. The card had been removed because it uploaded as a file, and document extraction rendered the user's own words as untrusted external content (#165763). ## Fix The pasted-text card is back as composer presentation only. On submit, one owner (`pasted-text-card.ts`) appends each card's exact text to the draft, as "Show in text field" would, before commands, recipients or delivery read it. Chat, New session and terminal launch share it. Cards no longer count as uploads for gates, admission or batch limits; submission consumes folded cards and releases their payloads, while failure recovery restores them. The Gateway is unchanged: document extraction and the external-content boundary are identical to main. ## Impact Long pastes into an existing draft show as a card again, and the model receives them exactly like typed text. A sent paste appears as message text in the transcript; chips from earlier clients still render. ## Proof - Regression tests in `chat-send-pasted-text.test.ts` (draft + recipient + annotation + card + file, `/steer`, `/btw`, upload limits, payload release) fail on base and pass on head; Chromium E2E covers card creation, restore and sends in Chat and New session. - Real Gateway and real model: a pasted brief reaches the model inline after the draft with no external-content markers and no file block; the model follows it. - Control UI performance check passes (chat boot JS −25 B, new-session boot JS +469 B vs base). Supersedes #165776, thanks @Oldrich333 for the root-cause analysis. Co-authored-by: Oldrich333 <184516902+Oldrich333@users.noreply.github.com> Co-authored-by: Ayaan Zaidi <hi@obviy.us>
fix(ui): restore long-paste cards, sent as message text (#201137)
Find Your Interest
- Kur’an Bizi Neden Amatör Kabul Eder?
- Pluribus – Tanıtım
- How I think Web Apps Should be Installed
- Video Killed the Text Star
- Video Killed the Text Star
- Tommy & Tuppence — Tanıtım
- Cupertino || Tanıtım
- Dan Maher from Datadog Says AI Agent Reliability Is an Engineering Problem, Not a Model Choice
- Dizi Krizi: Afyonun Etkisi Geçti!
- Müfit Kayacan ile Karanlıkta Islık Çalanlar Filmi ve Yaşanmamış Hayatların Yası Üzerine





