@@ -1844,9 +1844,12 @@ def run(target: str, output: Path = Path("results"), scan_duration: Optional[str
18441844 parameters = _load_parameters (target_dir )
18451845 discovered_parameters = _load_discovered_parameters (target_dir )
18461846 screenshots_skipped_reason = ""
1847+ screenshots_incomplete_reason = ""
18471848 screenshot_state_status = resolve_module_status (screenshot_state , has_artifact = bool (screenshots ))
18481849 if screenshot_state_status == "skipped" :
18491850 screenshots_skipped_reason = _normalize_skip_reason (str (screenshot_state .get ("error" ) or "Missing Dependency" ))
1851+ elif screenshot_state_status in {"failed" , "timeout" , "partial" }:
1852+ screenshots_incomplete_reason = _normalize_skip_reason (str (screenshot_state .get ("error" ) or screenshot_state_status ))
18501853 else :
18511854 chromium_ok , chromium_detail = check_playwright_chromium ()
18521855 if not screenshots and not chromium_ok :
@@ -1896,7 +1899,11 @@ def run(target: str, output: Path = Path("results"), scan_duration: Optional[str
18961899 screenshots_status = (
18971900 f"Skipped ({ screenshots_skipped_reason } )"
18981901 if screenshots_skipped_reason
1899- else ("Completed" if isinstance (screenshot_state , dict ) and screenshot_state .get ("status" ) == "completed" and not screenshots else (len (screenshots ) if screenshots_available else "Not Run" ))
1902+ else (
1903+ f"{ _status_label (screenshot_state_status )} ({ screenshots_incomplete_reason } )"
1904+ if screenshots_incomplete_reason
1905+ else ("Completed" if screenshot_state_status == "completed" and not screenshots else (len (screenshots ) if screenshots_available else "Not Run" ))
1906+ )
19001907 )
19011908 nuclei_status = (
19021909 f"{ nuclei_status_label } ({ nuclei_skipped_reason } )"
0 commit comments