Files
hapi/web/src
ad9fa5d711 feat(web): To agent control for terminal scrollback or selection into composer (#2012)
* 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>
2026-10-26 10:28:09 +08:00
..