mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
Refine agent background reply handling
This commit is contained in:
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
from typing import Any, Optional, Dict, Union, List
|
||||
from urllib.parse import unquote, urlparse
|
||||
|
||||
from app.agent import agent_manager, prompt_manager
|
||||
from app.agent import ReplyMode, agent_manager, prompt_manager
|
||||
from app.chain import ChainBase
|
||||
from app.chain.interaction import (
|
||||
MediaInteractionChain,
|
||||
@@ -635,7 +635,7 @@ class MessageChain(ChainBase):
|
||||
message=redo_prompt,
|
||||
session_prefix=f"__agent_manual_redo_{history_id}",
|
||||
output_callback=_capture_output,
|
||||
suppress_user_reply=True,
|
||||
reply_mode=ReplyMode.CAPTURE_ONLY,
|
||||
)
|
||||
await self.async_post_message(
|
||||
Notification(
|
||||
|
||||
Reference in New Issue
Block a user