Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d6f1a817
authored
Jun 15, 2026
by
sunqi02
Committed by
胡悦
Jul 01, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 修复记忆未保存问题,更新主Agent逻辑,持久化子Agent的KV变更并优化日志记录
1 parent
3545f615
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
workspace/agent-admin/backend/app/service/agent_hub.py
workspace/agent-admin/backend/logs/backend.log.2026-06-01
workspace/agent-admin/backend/app/service/agent_hub.py
View file @
d6f1a81
...
...
@@ -573,11 +573,13 @@ class AgentHub:
call_count
=
self
.
_current_route_ctx
.
get
(
"call_count"
,
0
)
if
call_count
>=
1
:
# 主Agent 委托了子Agent,最终回复不写 KV、不存 DB、不发送
# 主Agent 委托了子Agent,最终回复不写 KV、不发送 IM
# 但需持久化本轮写入的所有 KV 变更(user 消息 + tool 交互)
logger
.
info
(
"[主Agent 静默] call_count=
%
d,所有子Agent(含发言人)已发送回复,跳过主Agent 回复"
,
call_count
,
)
self
.
session_service
.
save_to_db
(
session_id
)
else
:
# call_count == 0:主Agent 自己直接回复,正常写入 + 存 DB + 发送
memory
.
add
(
"assistant"
,
response_content
,
agent_code
=
target_agent
)
...
...
workspace/agent-admin/backend/logs/backend.log.2026-06-01
deleted
100644 → 0
View file @
3545f61
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment