feat: atomic extract-and-connect + stale PR monitor + response audit #4
1 changed files with 2 additions and 6 deletions
|
|
@ -447,12 +447,8 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
|||
user.username or "?", unanswered_count[key], CONVERSATION_WINDOW)
|
||||
await handle_tagged(update, context)
|
||||
return
|
||||
else:
|
||||
# Group: silent context tracking only
|
||||
history = conversation_history.setdefault(key, [])
|
||||
history.append({"user": text[:500], "bot": ""})
|
||||
if len(history) > MAX_HISTORY:
|
||||
history.pop(0)
|
||||
# Group: don't track silent messages in history (Ganymede: Option A)
|
||||
# History should be the actual conversation, not a log of everything said in the group
|
||||
# Expire window after CONVERSATION_WINDOW unanswered messages
|
||||
if unanswered_count[key] >= CONVERSATION_WINDOW:
|
||||
del unanswered_count[key]
|
||||
|
|
|
|||
Loading…
Reference in a new issue