From b60ea5c5db0b8e26048d9a9f63417fba8e407bf7 Mon Sep 17 00:00:00 2001 From: "Matt Johnson (via Claude)" Date: Mon, 8 Jun 2026 03:49:12 +0000 Subject: [PATCH] fix(incident): remove TomTom road fallback to from field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let road stay None when road_numbers is absent so the renderer uses the from → to segment format instead of clobbering it with the raw from string. Co-Authored-By: Claude Opus 4.6 --- meshai/central/incident_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshai/central/incident_handler.py b/meshai/central/incident_handler.py index f4c1612..d24d8f9 100644 --- a/meshai/central/incident_handler.py +++ b/meshai/central/incident_handler.py @@ -303,7 +303,7 @@ def _parse_tomtom_incident(envelope: dict, now: int) -> Optional[dict]: "source": "tomtom_incidents", "external_id": external_id, "category_kind": "incident", - "road": _tomtom_road_label(d) or (d.get("from") or "road"), + "road": _tomtom_road_label(d), "direction": _tomtom_direction_from_description(d.get("description")), "mile_start": None, "mile_end": None,