From edb8ee3731fb15174a870162f140e2b3fd5757e2 Mon Sep 17 00:00:00 2001 From: Stefano Zini Date: Mon, 2 Nov 2026 16:46:57 +0100 Subject: [PATCH] Meeting title: Teams topic first, else from the transcript; never from shots One shot copied a shared AWS page title into meeting_title; it became the report title and the docs search query, pulling off-topic Confluence pages into the summaries. Shots no longer emit the meta title; report/docs ignore old "video" metas and fall back to the LLM title from the transcript topics (docs then searches with transcript-derived queries only). Co-Authored-By: Claude Opus 5.5 --- app/docs.py | 2 +- app/report.py | 2 +- app/shots.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/docs.py b/app/docs.py index 59de7e6..ea5b6b1 100644 --- a/app/docs.py +++ b/app/docs.py @@ -25,7 +25,7 @@ def _twg(*args, timeout=120): def _run(name): if not os.path.exists(TWG): raise FileNotFoundError("twg not found") d = db.out_dir(name) - meta = [json.loads(e["text"]) for e in db.events(name, "meta")] + meta = [json.loads(e["text"]) for e in db.events(name, "meta") if e["who_key"] != "video"] # Teams topic only, never a shot guess title = (meta[-1].get("title") or "") if meta else "" shots = json.loads((d / "shots.json").read_text(encoding="utf-8")) if (d / "shots.json").exists() else [] gl = json.loads((d / "glossary.json").read_text(encoding="utf-8")) if (d / "glossary.json").exists() else [] diff --git a/app/report.py b/app/report.py index e8c6061..fda762b 100644 --- a/app/report.py +++ b/app/report.py @@ -186,7 +186,7 @@ def run(name, window_words=3000): usable = lambda s: s["kind"] in CONTENT_KINDS and (not crop_ok or (s.get("view") or "").startswith("view_")) evs = db.events(name, "meta", "present", "share_start", "share_stop", "chat", "hand") names = db.speaker_names(name) - meta = [json.loads(e["text"]) for e in evs if e["kind"] == "meta"] + meta = [json.loads(e["text"]) for e in evs if e["kind"] == "meta" and e["who_key"] != "video"] # Teams topic only; else LLM title from transcript title = (meta[-1].get("title") or "") if meta else "" shares = _shares(evs, dur) att, src, counts = {}, set(), {} diff --git a/app/shots.py b/app/shots.py index 31d26d9..7d7d959 100644 --- a/app/shots.py +++ b/app/shots.py @@ -185,6 +185,4 @@ def run(name, max_frames=60, scene=0.05): if pr: ev.append((r["t"], "share_start", "video", pr, "")) last = pr if last: ev.append((dur, "share_stop", "video", last, "")) - titles = collections.Counter(r["meeting_title"] for r in rows if r["meeting_title"]) - if titles: ev.append((0, "meta", "video", "", json.dumps({"title": titles.most_common(1)[0][0], "call_elapsed": "", "url": ""}, ensure_ascii=False))) db.add_events(name, ev)