disable agent message tools for ui background tasks

This commit is contained in:
jxxghp
2026-04-29 23:30:59 +08:00
parent ef5bd29759
commit 7586a2cd42
11 changed files with 48 additions and 99 deletions

View File

@@ -132,7 +132,7 @@ def _start_ai_redo_task(history_id: int, prompt: str, progress_key: str):
output_callback=update_output,
suppress_user_reply=True,
persist_output_message=False,
suppress_message_channel_dispatch=True,
allow_message_tools=False,
)
progress.update(
text="智能助手整理完成",
@@ -178,7 +178,7 @@ def _start_batch_ai_redo_task(
output_callback=update_output,
suppress_user_reply=True,
persist_output_message=False,
suppress_message_channel_dispatch=True,
allow_message_tools=False,
)
progress.update(
text="智能助手批量整理完成",