fix: harden live assistant interactions
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-15 07:05:55 +02:00
parent 06c86e91a0
commit 5be8f628ef
4 changed files with 19 additions and 2 deletions
@@ -156,6 +156,7 @@ def test_geo_assistant_sends_grounded_context_without_thinking_trace(monkeypatch
assert captured["payload"]["stream"] is False
assert captured["payload"]["think"] is False
assert "Gebruik uitsluitend feiten en cijfers uit CONTEXT_JSON" in captured["payload"]["messages"][0]["content"]
assert "scope.label is het exact geanalyseerde gebied" in captured["payload"]["messages"][0]["content"]
assert "water_volume_available" in captured["payload"]["messages"][0]["content"]
@@ -224,7 +225,10 @@ def test_frontend_exposes_source_inventory_timeline_and_ai_window() -> None:
app = (ROOT / "frontend/src/App.tsx").read_text(encoding="utf-8")
workspace = (ROOT / "frontend/src/components/map/MapWorkspace.tsx").read_text(encoding="utf-8")
catalog = (ROOT / "frontend/src/components/datasets/SourceCatalogPanel.tsx").read_text(encoding="utf-8")
assistant_hook = (ROOT / "frontend/src/hooks/useGeoAssistant.ts").read_text(encoding="utf-8")
assert "SourceCatalogPanel" in app
assert "TemporalTrendChart" in workspace
assert "nextAssistantMessageId" in assistant_hook
assert "crypto.randomUUID" not in assistant_hook
assert "Officiële bronnen die hierna kunnen worden ingeladen" in catalog