mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
* feat(web): send terminal buffer or selection to agent composer Add a To agent control on the session terminal page that appends the xterm buffer (or current selection) to the session composer draft and navigates back to chat. Button label flips when a selection is active. Fixes tiann/hapi#2011 Co-authored-by: Cursor <cursoragent@cursor.com> * feat(web): FUE on composer Terminal for send-to-agent Advertise To agent / Selection to agent on the composer Terminal icon with feature id composer-terminal-to-agent. First click shows the explainer; Got it acknowledges and navigates (avoids unmounting the callout mid-read). Part of tiann/hapi#2011 Co-authored-by: Cursor <cursoragent@cursor.com> * fix(web): wrap-aware terminal extract and safe markdown fences Preserve logical lines across xterm isWrapped rows (keep wrap-boundary spaces) and size the excerpt fence longer than any backtick run in the body so cat'd Markdown cannot close the block early. Addresses review on tiann/hapi#2012. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>