fix(telemetry): classify setup-mode TUI preflight and preparation failures

This commit is contained in:
Ahmed Allam
2026-09-05 01:00:33 +00:00
parent 7a1de951ac
commit 74f8f3c306

View File

@@ -145,6 +145,7 @@ class GoTuiRuntime:
async def _preflight_model(self) -> None:
model = (load_settings().llm.model or "").strip()
self.controller.add_message("Verifying model connection...")
set_scan_phase("preflight")
await preflight_model_connection(model)
self.model_verified = True
@@ -183,7 +184,11 @@ class GoTuiRuntime:
candidate.target = list(self.controller.targets)
candidate.target_list = []
build_targets_info(candidate)
prepare_run(candidate)
try:
prepare_run(candidate)
except Exception as exc:
report_error("scan_preparation_failed", exc)
raise
telemetry_start(candidate)
vars(self.args).update(vars(candidate))