From a5037aa80878a6d79469a77f99b5582d989e2896 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Jul 2026 12:30:49 +0000 Subject: [PATCH] fix: align tag slice limit with prompt upper bound (5-8 tags) --- steward/bot/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steward/bot/telegram.py b/steward/bot/telegram.py index fe73549..8c1e072 100644 --- a/steward/bot/telegram.py +++ b/steward/bot/telegram.py @@ -202,7 +202,7 @@ async def flush_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> N f"Summary to tag:\n\n{summary_text}", system_prompt=_TAGS_SYSTEM_PROMPT, ) - tags = [t.strip().lower() for t in tags_raw.split(",") if t.strip()][:10] + tags = [t.strip().lower() for t in tags_raw.split(",") if t.strip()][:8] message_count = sum(1 for m in history if m["role"] == "user") thread_summary = ThreadSummary(