re
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
nose
2025-12-25 04:49:22 -08:00
parent 2542a68479
commit 43afa4e3fa
19 changed files with 2766 additions and 234 deletions

View File

@@ -860,6 +860,20 @@ def get_last_result_items() -> List[Any]:
return []
def get_last_selectable_result_items() -> List[Any]:
"""Get items from the last *selectable* result table, ignoring display-only items.
This is useful when a selection stage should target the last visible selectable table
(e.g., a playlist/search table), even if a prior action command emitted items and
populated _DISPLAY_ITEMS.
"""
if _LAST_RESULT_TABLE is None:
return list(_LAST_RESULT_ITEMS)
if _is_selectable_table(_LAST_RESULT_TABLE):
return list(_LAST_RESULT_ITEMS)
return []
def get_last_result_table_source_command() -> Optional[str]:
"""Get the source command from the last displayed result table.