agent_ui: Auto-capture file context on paste (#42982)

Closes #42972


https://github.com/user-attachments/assets/98f2d3dc-5682-4670-b636-fa8ea2495c69

Release Notes:

- Added automatic file context detection when pasting code into the AI
agent panel. Pasted code now displays as collapsible badges showing the
file path and line numbers (e.g., "app/layout.tsx (18-25)").

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
f6a6630171ozzy committed on 12/8/2025, 4:32:04 PM· committed by GitHubparent1842184
4 files changedLine totals unavailable