fix(web): support parallel sessions; fix lost/duplicate in-flight replies

This commit is contained in:
zhayujie
2026-06-08 15:36:48 +08:00
parent 26300a8d43
commit b7aa64279d
10 changed files with 266 additions and 33 deletions

View File

@@ -269,7 +269,9 @@ def run_evolution_for_session(
new_messages = all_messages[done:]
transcript = _build_transcript(new_messages)
if not transcript.strip():
logger.info(f"[Evolution] session={session_id}: no new messages, skip")
# Routine no-op: the per-minute scan hits every idle session, so keep
# this at debug to avoid spamming the log.
logger.debug(f"[Evolution] session={session_id}: no new messages, skip")
# Advance the cursor anyway so we don't re-scan the same tail.
agent._evo_done_msg_count = total_msgs
return False