feat: add tool server health check and show error details in CLI

- Add _wait_for_tool_server_health() to verify tool server is responding after init
- Show error details in CLI mode when penetration test fails
- Simplify error message (remove technical URL details)
This commit is contained in:
0xallam
2026-01-08 17:41:44 -08:00
committed by Ahmed Allam
parent 3a1820a1ff
commit 916a9000af
2 changed files with 10 additions and 72 deletions
+3
View File
@@ -167,8 +167,11 @@ async def run_cli(args: Any) -> None: # noqa: PLR0915
if isinstance(result, dict) and not result.get("success", True):
error_msg = result.get("error", "Unknown error")
error_details = result.get("details")
console.print()
console.print(f"[bold red]❌ Penetration test failed:[/] {error_msg}")
if error_details:
console.print(f"[dim]{error_details}[/]")
console.print()
sys.exit(1)
finally: