|
|
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 |
|
|
|
757718c492
|
feat: add user turn tool protection to shallow compression
- Add shallow_compress_keep_user_turn_tools config (default: 3)
- Add is_auto_generated metadata to system messages (sub_agent/background_command)
- Fix sub_agent notification path to include auto_message marker
- Frontend: add input field in PersonalizationDrawer
- Backend: implement protection logic in _run_auto_shallow_compression
|
2026-04-12 18:48:08 +08:00 |
|
|
|
a04eca3aab
|
fix: unify background run_command notifications with sub-agent flow
|
2026-04-08 16:13:40 +08:00 |
|
|
|
cd3f07bcc8
|
fix: enrich sub-agent results
|
2026-03-11 18:05:01 +08:00 |
|
|
|
ed82fc966e
|
fix: improve sub-agent ui and state
|
2026-03-11 15:40:28 +08:00 |
|
|
|
f09621fd86
|
feat: 为子智能体添加思考模式参数
- 新增 thinking_mode 参数(fast/thinking),支持根据任务复杂度选择模式
- 优化子智能体工具说明,提供详细的使用场景示例
- 增强子智能体状态展示,添加统计信息摘要
- 完善交付目录验证,要求必须为不存在的新目录
- 优化子智能体完成/超时/失败的消息格式
- 同步更新前端和批处理相关代码
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-03-11 03:34:20 +08:00 |
|
|
|
b68dee9d98
|
chore: snapshot current changes
|
2026-03-10 23:48:40 +08:00 |
|
|
|
3402375710
|
refactor: split pending writes and task support from chat task main
|
2026-03-07 20:37:58 +08:00 |
|