Support filtered-result primary action and optional export-selected menu. Co-authored-by: Cursor <cursoragent@cursor.com>