fix(voice): keep the area in follow-ups on OSM places

osm_query handed its places to the analyst with no presentation, so "which of
those have emergency?" after "hospitals in Kathmandu" was answered as "anywhere
in the loaded data". The handoff now carries the scope the places were found
in ("inside Kathmandu" with its areaId, or "in view"), as an analyst count over
that area would.
This commit is contained in:
Manjunath committed 2026-11-03 17:27:32 +05:30
1 parent 451be8e3b7
commit 474cce51eb
5 files changed
+71 -9

No files matched your search

+5 -2
View File
@@ -1226,9 +1226,12 @@ export function createGevActionRunner({
onCredit: () => registerDynamicCredit(viewer, OSM_PLACES_CREDIT),
// The listed places become the analyst's "last answer", so
// "which of those…" filters them and never an older set.
rememberResults: (rows) => {
rememberResults: (rows, presentation) => {
if (!current()) return;
if (rows) ensureAnalystEngine().remember('osm-places', rows);
if (rows)
ensureAnalystEngine().remember('osm-places', rows, {
presentation,
});
else analystEngine?.reset();
},
progress: reportProgress,