This commit is contained in:
2026-01-12 20:33:14 -08:00
parent 8b7f518725
commit b5247936a4
5 changed files with 39 additions and 33 deletions

View File

@@ -499,20 +499,6 @@ def _run(result: Any, _args: Sequence[str], config: Dict[str, Any]) -> int:
if not found_relationships:
log(f"Hydrus relationships fetch failed: {exc}", file=sys.stderr)
if not found_relationships:
try:
from rich.panel import Panel
from SYS.rich_display import stdout_console
title = source_title or (hash_hex[:16] + "..." if hash_hex else "Item")
stdout_console().print(
Panel(f"{title} has no relationships",
title="Relationships")
)
except Exception:
log("No relationships found.")
return 0
# Display results
from SYS.result_table import ItemDetailView, extract_item_metadata
@@ -580,11 +566,15 @@ def _run(result: Any, _args: Sequence[str], config: Dict[str, Any]) -> int:
f"hash:{item['hash']}"]
)
ctx.set_last_result_table(table, pipeline_results)
# Ensure empty state is still navigable/visible
ctx.set_last_result_table_overlay(table, pipeline_results)
from SYS.rich_display import stdout_console
stdout_console().print(table)
if not found_relationships:
log("No relationships found.")
return 0