fix(browser): surface Lightpanda Chrome fallback warnings

This commit is contained in:
Kshitij Kapoor 2026-05-06 12:49:45 +05:30 committed by kshitij
parent 395dbcc873
commit 3ebdd26449
3 changed files with 504 additions and 208 deletions

View file

@ -1473,6 +1473,11 @@ def _tool_summary(name: str, result: str, duration_s: float | None) -> str | Non
if n is not None:
text = f"Extracted {n} {'page' if n == 1 else 'pages'}"
if isinstance(data, dict) and data.get("fallback_warning"):
warning = str(data.get("fallback_warning") or "").strip()
if warning:
return f"{warning}{suffix}"
return f"{text}{suffix}" if text else None