重构:更新聊天流中打断计数的重置逻辑,简化元事件处理器的实现

This commit is contained in:
Windpicker-owo
2025-11-26 17:58:31 +08:00
parent d28ba27f26
commit 46a98fefc4
4 changed files with 7 additions and 78 deletions

View File

@@ -391,10 +391,10 @@ class ChatterActionManager:
chat_stream = await chat_manager.get_stream(stream_id)
if chat_stream:
context = chat_stream.context
if context.context.interruption_count > 0:
old_count = context.context.interruption_count
if context.interruption_count > 0:
old_count = context.interruption_count
# old_afc_adjustment = context.context.get_afc_threshold_adjustment()
await context.context.reset_interruption_count()
await context.reset_interruption_count()
logger.debug(
f"动作执行成功,重置聊天流 {stream_id} 的打断计数: {old_count} -> 0"
)