agent-Specialization/prompts
JOJO 67fdb715f5 refactor(messages): 统一运行期消息插入为 [系统通知|source] 前缀的 user 消息
- 新增 server/chat_flow_task_support.inject_runtime_user_message 作为唯一入口,
  统一处理 add_conversation + messages.insert + sender(user_message) 三件事
- 子智能体 / 后台 run_command / runtime_guidance / mode notice 全部走该入口,
  role 一律 user,inline 仅作 metadata 标记,不再复用 system role 表达语义
- inline poll 移出 tool 执行循环,改为整轮 tool 完成后批量注入,
  避免在 assistant.tool_calls 与 tool 序列之间插入 user 导致 API 报错
- 删除 _insert_completion_notice_message / _record_sub_agent_message
  以及 build_messages 中 system→user 的回转分支
- 移除已废弃的 wait_sub_agent 工具残留(后端注册、前端图标/动画、
  prompts、SKILL 文档;保留 sleep 的 wait_sub_agent_ids 参数)
- 前端取消对 is_auto_generated/auto_message_type 的过滤,
  让运行期注入的 user 消息在历史和实时推送中正常渲染

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 02:01:36 +08:00
..
agents_md_inject.txt feat: 添加AGENTS.md自动注入的prompt模板 2026-04-12 16:34:06 +08:00
deep_thinking_mode_guidelines.txt feat: expand model support and qwen-vl ux 2026-01-03 07:01:24 +08:00
execution_mode.txt feat(security): harden host execution model with sandbox/direct controls 2026-05-10 19:19:01 +08:00
human_like_style.txt feat: 添加智能体交流风格选项 2026-04-14 01:47:06 +08:00
main_system_qwenvl.txt refactor(messages): 统一运行期消息插入为 [系统通知|source] 前缀的 user 消息 2026-05-23 02:01:36 +08:00
main_system.txt refactor(messages): 统一运行期消息插入为 [系统通知|source] 前缀的 user 消息 2026-05-23 02:01:36 +08:00
permission_mode.txt feat: 权限模式支持管道命令并优化prompt注入 2026-04-13 16:23:24 +08:00
personalization.txt fix: refine title prompt and sandbox config 2026-01-29 11:54:24 +08:00
skills_system.txt feat: add read_skill tool and frontend read-skill rendering 2026-04-19 16:57:02 +08:00
sub_agent_guidelines.txt feat: 添加 terminal-guide 和 sub-agent-guide skills 2026-03-16 21:17:02 +08:00
thinking_mode_guidelines.txt feat: expand model support and qwen-vl ux 2026-01-03 07:01:24 +08:00
title_generation_prompt.txt chore: instruct title gen to ignore first user instructions 2026-01-05 01:13:13 +08:00
todo_guidelines.txt fix: update run_command limits and planning guidance 2026-04-14 14:12:11 +08:00
workspace_system.txt feat: add silent disable option and workspace prompt split 2026-02-03 23:11:15 +08:00