fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions, schedules, executions, team_members) and unbind goals/tasks before delete - Remove hardcoded personality templates in Android, replace with dynamic system prompt generation from name + description - Set promptSectionsEnabled=false to bypass PromptComposer for personality - Add Tencent Cloud Linux deployment guide (Docker Compose) - Accumulated backend service updates, frontend UI fixes, Android app changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,21 @@ EDIT_TOOLS: set = {
|
||||
"file_edit", "file_write", "notebook_edit",
|
||||
}
|
||||
|
||||
# 默认需要人工审批的工具列表 — 创建 Agent 时自动生效
|
||||
DEFAULT_REQUIRE_APPROVAL_TOOLS: List[str] = [
|
||||
"deploy_push",
|
||||
"send_email",
|
||||
"send_sms",
|
||||
"git_push",
|
||||
"git_reset_hard",
|
||||
"database_execute",
|
||||
"docker_manage",
|
||||
"command_exec",
|
||||
"shell_exec",
|
||||
"file_delete",
|
||||
"agent_delete",
|
||||
]
|
||||
|
||||
|
||||
def is_read_only_tool(tool_name: str) -> bool:
|
||||
"""判断工具是否只读"""
|
||||
|
||||
Reference in New Issue
Block a user