fix: align tag slice limit with prompt upper bound (5-8 tags)

This commit is contained in:
copilot-swe-agent[bot] 2026-07-25 12:30:49 +00:00 committed by GitHub
parent 867542dd49
commit a5037aa808

View File

@ -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(